summaryrefslogtreecommitdiffstats
path: root/src/sp-text.cpp
diff options
context:
space:
mode:
authorMatthew Petroff <matthew@mpetroff.net>2013-07-20 19:08:31 +0000
committerMatthew Petroff <matthew@mpetroff.net>2013-07-20 19:08:31 +0000
commitfdf69629c66f6c1a69d88a00bb6c1311c97b631b (patch)
treed35f16b943cf6b1635e12d16e2452b034643fea5 /src/sp-text.cpp
parentAdd string output functions for units. (diff)
downloadinkscape-fdf69629c66f6c1a69d88a00bb6c1311c97b631b.tar.gz
inkscape-fdf69629c66f6c1a69d88a00bb6c1311c97b631b.zip
Ported away from and removed "sp-metrics.*".
(bzr r12380.1.47)
Diffstat (limited to 'src/sp-text.cpp')
-rw-r--r--src/sp-text.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sp-text.cpp b/src/sp-text.cpp
index 8d42b7d59..d84bbdc6c 100644
--- a/src/sp-text.cpp
+++ b/src/sp-text.cpp
@@ -43,7 +43,6 @@
#include "sp-namedview.h"
#include "style.h"
#include "inkscape.h"
-#include "sp-metrics.h"
#include "xml/quote.h"
#include "xml/repr.h"
#include "mod360.h"
@@ -392,7 +391,8 @@ static char * sp_text_description(SPItem *item)
n = g_strdup(_("&lt;no name found&gt;"));
}
- GString *xs = SP_PX_TO_METRIC_STRING(style->font_size.computed, sp_desktop_namedview(SP_ACTIVE_DESKTOP)->getDefaultMetric());
+ Inkscape::Util::Quantity q = Inkscape::Util::Quantity(style->font_size.computed, "px");
+ GString *xs = g_string_new(q.string(*sp_desktop_namedview(SP_ACTIVE_DESKTOP)->doc_units).c_str());
char const *trunc = "";
Inkscape::Text::Layout const *layout = te_get_layout((SPItem *) item);