diff options
author | Ed Catmur <ed@catmur.co.uk> | 2007-01-27 17:29:46 (GMT) |
---|---|---|
committer | Nickolay V. Shmyrev <nshmyrev@src.gnome.org> | 2007-01-27 17:29:46 (GMT) |
commit | 9de1152cd935d9f00f2709052d25d42b18cb1b0f (patch) | |
tree | 69cd9e36412db82dfd3539ab5acddfc1bf258df1 | |
parent | a5a888e60c5ef9287680ef23fbc5707e73a3be2b (diff) |
Normalize text to fix ligatures problem. See bug #341947 for details.
2007-01-27 Ed Catmur <ed@catmur.co.uk>
* shell/ev-view.c: (get_selected_text):
Normalize text to fix ligatures problem. See bug
#341947 for details.
svn path=/trunk/; revision=2254
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | shell/ev-view.c | 5 |
2 files changed, 11 insertions, 1 deletions
@@ -1,3 +1,10 @@ +2007-01-27 Ed Catmur <ed@catmur.co.uk> + + * shell/ev-view.c: (get_selected_text): + + Normalize text to fix ligatures problem. See bug + #341947 for details. + 2007-01-25 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-page-cache.c: (ev_page_cache_finalize): diff --git a/shell/ev-view.c b/shell/ev-view.c index 4703864..fec6435 100644 --- a/shell/ev-view.c +++ b/shell/ev-view.c @@ -4642,6 +4642,7 @@ get_selected_text (EvView *ev_view) { GString *text; GList *l; + gchar *normalized_text; text = g_string_new (NULL); @@ -4660,7 +4661,9 @@ get_selected_text (EvView *ev_view) ev_document_doc_mutex_unlock (); - return g_string_free (text, FALSE); + normalized_text = g_utf8_normalize (text->str, text->len, G_NORMALIZE_NFKC); + g_string_free (text, TRUE); + return normalized_text; } void |