diff options
author | Peng Wu <alexepico@gmail.com> | 2024-08-07 13:01:43 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2024-08-07 13:01:43 +0800 |
commit | 1a88675516d9fd155d4055d13355c66b7d5757e6 (patch) | |
tree | 4a8dcde81a07ba7beb96f39876ba6f215ff30fcc /src/PYLibPinyin.cc | |
parent | e9935e4a3f4e7393a007e23468ab11d95edd54b6 (diff) | |
download | ibus-libpinyin-export-bigram.tar.gz ibus-libpinyin-export-bigram.tar.xz ibus-libpinyin-export-bigram.zip |
Fix LibPinyinBackEnd::exportPinyinDictionary methodexport-bigram
Diffstat (limited to 'src/PYLibPinyin.cc')
-rw-r--r-- | src/PYLibPinyin.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/PYLibPinyin.cc b/src/PYLibPinyin.cc index 5180164..d4f47c0 100644 --- a/src/PYLibPinyin.cc +++ b/src/PYLibPinyin.cc @@ -335,6 +335,9 @@ LibPinyinBackEnd::exportBigramPhrase (FILE *dictfile) gboolean LibPinyinBackEnd::exportPinyinDictionary (const char *filename) { + if (NULL == m_pinyin_context) + return FALSE; + /* user phrase library should be already loaded here. */ FILE * dictfile = fopen (filename, "w"); if (NULL == dictfile) |