Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorEd 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)
commit9de1152cd935d9f00f2709052d25d42b18cb1b0f (patch)
tree69cd9e36412db82dfd3539ab5acddfc1bf258df1 /shell
parenta5a888e60c5ef9287680ef23fbc5707e73a3be2b (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
Diffstat (limited to 'shell')
-rw-r--r--shell/ev-view.c5
1 files changed, 4 insertions, 1 deletions
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