fixes chewing options
authorPeng Wu <alexepico@gmail.com>
Mon, 30 Jan 2012 02:36:27 +0000 (10:36 +0800)
committerPeng Wu <alexepico@gmail.com>
Mon, 30 Jan 2012 02:36:27 +0000 (10:36 +0800)
src/PYLibPinyin.cc

index 6f318f5..c1b1f92 100644 (file)
@@ -173,7 +173,8 @@ LibPinyinBackEnd::setChewingOptions (Config *config)
         }
     }
 
-    pinyin_set_options(m_chewing_context, config->option());
+    pinyin_option_t options = config->option() | USE_TONE;
+    pinyin_set_options(m_chewing_context, options);
     return TRUE;
 }