Update lookup table before preedit text and aux text to avoid crash
authorPeng Huang <shawn.p.huang@gmail.com>
Sat, 3 Apr 2010 03:33:36 +0000 (11:33 +0800)
committerPeng Huang <shawn.p.huang@gmail.com>
Sat, 3 Apr 2010 03:33:36 +0000 (11:33 +0800)
src/PinyinEditor.cc

index e2f43fa..7d2866d 100644 (file)
@@ -545,9 +545,9 @@ PinyinEditor::updateAuxiliaryTextAfter (String &buffer)
 void
 PinyinEditor::update (void)
 {
+    updateLookupTable ();
     updatePreeditText ();
     updateAuxiliaryText ();
-    updateLookupTable ();
 }
 
 void