summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2014-07-14 13:28:36 +0800
committerPeng Wu <alexepico@gmail.com>2014-07-14 13:28:36 +0800
commitf2e19cf6bfc3fccfec16d9319ada585bb8a35de7 (patch)
tree1a100281945163b4d4ed36d526e79ac7dbf9709a
parentd4b7aa31a0261af21c8cdf36717119175280ca76 (diff)
downloadibus-libzhuyin-f2e19cf6bfc3fccfec16d9319ada585bb8a35de7.tar.gz
ibus-libzhuyin-f2e19cf6bfc3fccfec16d9319ada585bb8a35de7.tar.xz
ibus-libzhuyin-f2e19cf6bfc3fccfec16d9319ada585bb8a35de7.zip
fixes method updatePreeditText
-rw-r--r--src/ZYZPinyinEditor.cc3
-rw-r--r--src/ZYZZhuyinEditor.cc3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/ZYZPinyinEditor.cc b/src/ZYZPinyinEditor.cc
index 7eb85e9..44e29c6 100644
--- a/src/ZYZPinyinEditor.cc
+++ b/src/ZYZPinyinEditor.cc
@@ -160,8 +160,9 @@ PinyinEditor::updatePreeditText (void)
} else {
TradSimpConverter::tradToSimp (m_preedit_text.c_str (), m_buffer);
}
+ m_preedit_text = m_buffer;
- StaticText preedit_text (m_buffer);
+ StaticText preedit_text (m_preedit_text);
/* underline */
preedit_text.appendAttribute (IBUS_ATTR_TYPE_UNDERLINE, IBUS_ATTR_UNDERLINE_SINGLE, 0, -1);
diff --git a/src/ZYZZhuyinEditor.cc b/src/ZYZZhuyinEditor.cc
index 50ff322..66ab411 100644
--- a/src/ZYZZhuyinEditor.cc
+++ b/src/ZYZZhuyinEditor.cc
@@ -165,8 +165,9 @@ ZhuyinEditor::updatePreeditText (void)
} else {
TradSimpConverter::tradToSimp (m_preedit_text.c_str (), m_buffer);
}
+ m_preedit_text = m_buffer;
- StaticText preedit_text (m_buffer);
+ StaticText preedit_text (m_preedit_text);
/* underline */
preedit_text.appendAttribute (IBUS_ATTR_TYPE_UNDERLINE, IBUS_ATTR_UNDERLINE_SINGLE, 0, -1);