summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2016-08-08 16:13:30 +0800
committerPeng Wu <alexepico@gmail.com>2016-08-08 16:13:30 +0800
commitccc1176a25c3ffb94079ae38c40f475d2b1f839c (patch)
treec46694e10924eec3804df5addda990c7b81a049e
parentefaff649a8621801e77613035fca50c371ba334e (diff)
downloadibus-libpinyin-ccc1176a25c3ffb94079ae38c40f475d2b1f839c.tar.gz
ibus-libpinyin-ccc1176a25c3ffb94079ae38c40f475d2b1f839c.tar.xz
ibus-libpinyin-ccc1176a25c3ffb94079ae38c40f475d2b1f839c.zip
fixes updatePreeditText methods
-rw-r--r--src/PYPBopomofoEditor.cc2
-rw-r--r--src/PYPPinyinEditor.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/PYPBopomofoEditor.cc b/src/PYPBopomofoEditor.cc
index a48a856..be89eb5 100644
--- a/src/PYPBopomofoEditor.cc
+++ b/src/PYPBopomofoEditor.cc
@@ -329,7 +329,7 @@ BopomofoEditor::updatePreeditText ()
size_t offset = 0;
guint cursor = getPinyinCursor ();
- g_assert (pinyin_get_character_offset(m_instance, sentence, cursor, &offset));
+ pinyin_get_character_offset(m_instance, sentence, cursor, &offset);
Editor::updatePreeditText (preedit_text, offset, TRUE);
if (sentence)
diff --git a/src/PYPPinyinEditor.cc b/src/PYPPinyinEditor.cc
index 4ed475f..b7ab8c3 100644
--- a/src/PYPPinyinEditor.cc
+++ b/src/PYPPinyinEditor.cc
@@ -266,7 +266,7 @@ PinyinEditor::updatePreeditText ()
size_t offset = 0;
guint cursor = getPinyinCursor ();
- g_assert (pinyin_get_character_offset(m_instance, sentence, cursor, &offset));
+ pinyin_get_character_offset(m_instance, sentence, cursor, &offset);
Editor::updatePreeditText (preedit_text, offset, TRUE);
if (sentence)