Permalink
Browse files

Fix attribute range overflow for preedit.

  • Loading branch information...
1 parent 81f981c commit fcb4b2352c1fc7c6c79327dc174862d96d51ddea @ueno committed Dec 27, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/engine.vala
  2. +1 −1 src/setup.vala
View
@@ -130,7 +130,7 @@ class SkkEngine : IBus.Engine {
text.append_attribute (IBus.AttrType.UNDERLINE,
IBus.AttrUnderline.SINGLE,
0,
- context.preedit.length - 1);
+ (int) text.get_length ());
update_preedit_text (text,
text.get_length (),
text.get_length () > 0);
View
@@ -165,7 +165,7 @@ class Setup : Object {
model = new Gtk.ListStore (2, typeof (string), typeof (string));
model.set_sort_column_id (1, Gtk.SortType.ASCENDING);
typing_rule_combobox.set_model (model);
- var rules = Skk.list_typing_rules ();
+ var rules = Skk.Rule.list ();
foreach (var rule in rules) {
Gtk.TreeIter iter;
model.append (out iter);

0 comments on commit fcb4b23

Please sign in to comment.