summaryrefslogtreecommitdiffstats
path: root/src/sp-text.cpp
diff options
context:
space:
mode:
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 21d6a42f7..93d81e47b 100644
--- a/src/sp-text.cpp
+++ b/src/sp-text.cpp
@@ -356,6 +356,7 @@ const char* SPText::displayName() const {
}
gchar* SPText::description() const {
+
SPStyle *style = this->style;
char *n = xml_quote_strdup( style->font_family.value );
@@ -371,9 +372,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_free(n);
+ ? g_strdup_printf(_("on path%s (%s, %s)"), trunc, n, xs->str)
+ : g_strdup_printf(_("%s (%s, %s)"), trunc, n, xs->str) );
return ret;
}