Browse Source

Fixed pango attributes not being applied in some cases.

gtk_entry_get_text_length returns the number of utf-8 characters in the GtkEntry, not the number of bytes in its text.
2015
Arnavion 8 years ago
parent
commit
29321c8660
  1. 2
      src/fe-gtk/sexy-spell-entry.c

2
src/fe-gtk/sexy-spell-entry.c

@ -1047,7 +1047,7 @@ sexy_spell_entry_recheck_all(SexySpellEntry *entry) @@ -1047,7 +1047,7 @@ sexy_spell_entry_recheck_all(SexySpellEntry *entry)
{
/* Check for attributes */
text = gtk_entry_get_text (GTK_ENTRY (entry));
text_len = gtk_entry_get_text_length (GTK_ENTRY (entry));
text_len = strlen (text);
check_attributes (entry, text, text_len);
}

Loading…
Cancel
Save