summaryrefslogtreecommitdiffstats
path: root/src/sp-text.cpp
diff options
context:
space:
mode:
authorJan Lingscheid <jan.linscheid@auticon.de>2017-09-12 07:12:38 +0000
committerJan Lingscheid <jan.lingscheid@auticon.de>2017-09-21 05:46:23 +0000
commitbc5cab7c179b3e0b7e234731908f552b78a29676 (patch)
tree9410c3337e8bbdab323be2dbf054b51c893f29e5 /src/sp-text.cpp
parentRemove usage of GString from seltrans.cpp (diff)
downloadinkscape-bc5cab7c179b3e0b7e234731908f552b78a29676.tar.gz
inkscape-bc5cab7c179b3e0b7e234731908f552b78a29676.zip
Remove useage of GString from sp-text.cpp
Diffstat (limited to 'src/sp-text.cpp')
-rw-r--r--src/sp-text.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sp-text.cpp b/src/sp-text.cpp
index 2a88c5009..a13adbf0b 100644
--- a/src/sp-text.cpp
+++ b/src/sp-text.cpp
@@ -359,7 +359,7 @@ gchar* SPText::description() const {
int unit = prefs->getInt("/options/font/unitType", SP_CSS_UNIT_PT);
Inkscape::Util::Quantity q = Inkscape::Util::Quantity(style->font_size.computed, "px");
q.quantity *= this->i2doc_affine().descrim();
- GString *xs = g_string_new(q.string(sp_style_get_css_unit_string(unit)).c_str());
+ Glib::ustring xs = q.string(sp_style_get_css_unit_string(unit));
char const *trunc = "";
Inkscape::Text::Layout const *layout = te_get_layout((SPItem *) this);
@@ -369,8 +369,8 @@ gchar* SPText::description() const {
}
char *ret = ( SP_IS_TEXT_TEXTPATH(this)
- ? g_strdup_printf(_("on path%s (%s, %s)"), trunc, n, xs->str)
- : g_strdup_printf(_("%s (%s, %s)"), trunc, n, xs->str) );
+ ? g_strdup_printf(_("on path%s (%s, %s)"), trunc, n, xs.c_str())
+ : g_strdup_printf(_("%s (%s, %s)"), trunc, n, xs.c_str()) );
return ret;
}