summaryrefslogtreecommitdiffstats
path: root/src/PYPPhoneticEditor.cc
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2012-07-04 10:44:04 +0800
committerPeng Wu <alexepico@gmail.com>2012-07-04 10:47:37 +0800
commit26b0d48bdb4fdefea795862c9a58acdb9cfb1b96 (patch)
tree03a733bd18475c4dbba2f8c271ff01531762b1e9 /src/PYPPhoneticEditor.cc
parent0cb429b5bfa96f19705bf8ada56efdd2a0876a33 (diff)
downloadibus-libpinyin-26b0d48bdb4fdefea795862c9a58acdb9cfb1b96.tar.gz
ibus-libpinyin-26b0d48bdb4fdefea795862c9a58acdb9cfb1b96.tar.xz
ibus-libpinyin-26b0d48bdb4fdefea795862c9a58acdb9cfb1b96.zip
fixes fillLookupTableByPage1.4.1
Diffstat (limited to 'src/PYPPhoneticEditor.cc')
-rw-r--r--src/PYPPhoneticEditor.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PYPPhoneticEditor.cc b/src/PYPPhoneticEditor.cc
index 87242c6..bdc05d8 100644
--- a/src/PYPPhoneticEditor.cc
+++ b/src/PYPPhoneticEditor.cc
@@ -198,7 +198,7 @@ LibPinyinPhoneticEditor::fillLookupTableByPage (void)
guint filled_nr = m_lookup_table.size ();
guint page_size = m_lookup_table.pageSize ();
- /* fill lookup table by libpinyin guessed sentence and get candidates. */
+ /* fill lookup table by libpinyin get candidates. */
guint need_nr = MIN (page_size, m_candidates->len - filled_nr);
g_assert (need_nr >=0);
if (need_nr == 0)
@@ -216,7 +216,7 @@ LibPinyinPhoneticEditor::fillLookupTableByPage (void)
if (BEST_MATCH_CANDIDATE == candidate->m_candidate_type) {
/* hide selected part */
- guint cursor = getPinyinCursor ();
+ guint cursor = getLookupCursor ();
phrase_string = g_utf8_offset_to_pointer
(candidate->m_phrase_string, cursor);
}