From 9de1152cd935d9f00f2709052d25d42b18cb1b0f Mon Sep 17 00:00:00 2001 From: Ed Catmur Date: Sat, 27 Jan 2007 17:29:46 +0000 Subject: Normalize text to fix ligatures problem. See bug #341947 for details. 2007-01-27 Ed Catmur * shell/ev-view.c: (get_selected_text): Normalize text to fix ligatures problem. See bug #341947 for details. svn path=/trunk/; revision=2254 --- (limited to 'shell') 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 -- cgit v0.9.1