summaryrefslogtreecommitdiffstats
path: root/src/pinyin.cpp
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-08-23 18:36:30 +0800
committerPeng Wu <alexepico@gmail.com>2011-08-23 18:36:30 +0800
commit40c82f591553e94f21816b2d940aab1d47f2b3d3 (patch)
tree91653cacc4690ca15a1de77548b5df9e3b3a0eec /src/pinyin.cpp
parentc108fa57f1e265a6682c9fdb267e7b2c1653a401 (diff)
downloadlibpinyin-40c82f591553e94f21816b2d940aab1d47f2b3d3.tar.gz
libpinyin-40c82f591553e94f21816b2d940aab1d47f2b3d3.tar.xz
libpinyin-40c82f591553e94f21816b2d940aab1d47f2b3d3.zip
write test pinyin
Diffstat (limited to 'src/pinyin.cpp')
-rw-r--r--src/pinyin.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pinyin.cpp b/src/pinyin.cpp
index 5ac5a07..4bc000a 100644
--- a/src/pinyin.cpp
+++ b/src/pinyin.cpp
@@ -355,6 +355,7 @@ bool pinyin_save(pinyin_context_t * context){
oldchunk = new MemoryChunk; newlog = new MemoryChunk;
filename = g_build_filename(context->m_system_dir,
"gbk_char.bin", NULL);
+ oldchunk->load(filename);
context->m_phrase_index->diff(2, oldchunk, newlog);
filename = g_build_filename(context->m_user_dir,
"gbk_char.dbin", NULL);