summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNicolas Dufour <nicoduf@yahoo.fr>2014-09-12 05:59:27 +0000
committerJazzyNico <nicoduf@yahoo.fr>2014-09-12 05:59:27 +0000
commit1e435432e61ca5794f784e3758d1034aa93cc171 (patch)
treed482c60f1e9eea27cb2978b63f415e5c1b890202 /src
parentFix bug #1367520 (crash regression) (diff)
downloadinkscape-1e435432e61ca5794f784e3758d1034aa93cc171.tar.gz
inkscape-1e435432e61ca5794f784e3758d1034aa93cc171.zip
i18n. Fix for Bug #1368375 (Page titles in preferences don't escape text for markup) by houz.
Fixed bugs: - https://launchpad.net/bugs/1368375 (bzr r13552)
Diffstat (limited to 'src')
-rw-r--r--src/ui/dialog/inkscape-preferences.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/dialog/inkscape-preferences.cpp b/src/ui/dialog/inkscape-preferences.cpp
index 5d065dc60..e04748759 100644
--- a/src/ui/dialog/inkscape-preferences.cpp
+++ b/src/ui/dialog/inkscape-preferences.cpp
@@ -2054,7 +2054,8 @@ void InkscapePreferences::on_pagelist_selection_changed()
if (!_init) {
prefs->setInt("/dialogs/preferences/page", row[_page_list_columns._col_id]);
}
- _page_title.set_markup("<span size='large'><b>" + row[_page_list_columns._col_name] + "</b></span>");
+ Glib::ustring col_name_escaped = Glib::Markup::escape_text( row[_page_list_columns._col_name] );
+ _page_title.set_markup("<span size='large'><b>" + col_name_escaped + "</b></span>");
_page_frame.add(*_current_page);
_current_page->show();
while (Gtk::Main::events_pending())