summaryrefslogtreecommitdiffstats
path: root/src/star-context.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/star-context.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/star-context.cpp')
-rw-r--r--src/star-context.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/star-context.cpp b/src/star-context.cpp
index 5fb33a180..d4996e189 100644
--- a/src/star-context.cpp
+++ b/src/star-context.cpp
@@ -36,7 +36,6 @@
#include "desktop-style.h"
#include "message-context.h"
#include "pixmaps/cursor-star.xpm"
-#include "sp-metrics.h"
#include <glibmm/i18n.h>
#include "preferences.h"
#include "xml/repr.h"
@@ -450,7 +449,8 @@ static void sp_star_drag(SPStarContext *sc, Geom::Point p, guint state)
arg1, arg1 + M_PI / sides, sc->isflatsided, sc->rounded, sc->randomized);
/* status text */
- GString *rads = SP_PX_TO_METRIC_STRING(r1, desktop->namedview->getDefaultMetric());
+ Inkscape::Util::Quantity q = Inkscape::Util::Quantity(r1, "px");
+ GString *rads = g_string_new(q.string(*desktop->namedview->doc_units).c_str());
sc->_message_context->setF(Inkscape::IMMEDIATE_MESSAGE,
( sc->isflatsided?
_("<b>Polygon</b>: radius %s, angle %5g&#176;; with <b>Ctrl</b> to snap angle")