summaryrefslogtreecommitdiffstats
path: root/src/ui/widget/font-selector.cpp
diff options
context:
space:
mode:
authorGeoff Lankow <geoff@darktrojan.net>2018-05-31 00:56:39 +0000
committerGeoff Lankow <geoff@darktrojan.net>2018-05-31 00:59:43 +0000
commit97b2edffa6f92c0867823f796d144de9f3712a8e (patch)
tree4715376cf01e82514b1f61a1ad537128cbca6fc9 /src/ui/widget/font-selector.cpp
parentAdd center mirror symmetry butons for perfect symmetry and rotate copyes cleanup (diff)
downloadinkscape-97b2edffa6f92c0867823f796d144de9f3712a8e.tar.gz
inkscape-97b2edffa6f92c0867823f796d144de9f3712a8e.zip
Fix three more instances of incorrectly escaped markup
Diffstat (limited to 'src/ui/widget/font-selector.cpp')
-rw-r--r--src/ui/widget/font-selector.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ui/widget/font-selector.cpp b/src/ui/widget/font-selector.cpp
index 70f7d55db..59b7311c2 100644
--- a/src/ui/widget/font-selector.cpp
+++ b/src/ui/widget/font-selector.cpp
@@ -12,6 +12,7 @@
#endif
#include <glibmm/i18n.h>
+#include <glibmm/markup.h>
#include "font-selector.h"
@@ -268,8 +269,8 @@ FontSelector::style_cell_data_func (Gtk::CellRenderer *renderer, Gtk::TreeIter c
Glib::ustring style = "Normal";
(*iter).get_value(1, style);
- Glib::ustring style_escaped = Glib::strescape( style );
- Glib::ustring font_desc = family + " " + style;
+ Glib::ustring style_escaped = Glib::Markup::escape_text( style );
+ Glib::ustring font_desc = Glib::Markup::escape_text( family + " " + style );
Glib::ustring markup;
markup = "<span font='" + font_desc + "'>" + style_escaped + "</span>";