summaryrefslogtreecommitdiffstats
path: root/src/ui/tools/star-tool.cpp
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2017-09-27 08:15:49 +0000
committerTavmjong Bah <tavmjong@free.fr>2017-09-27 08:15:49 +0000
commit40d24d185b7e050deac650960464630f9af4b073 (patch)
treeec019942c30f0ae0ee010a86c2fdc6f04af713c2 /src/ui/tools/star-tool.cpp
parentFix error when vertical text has 'text-orientation' value 'sideways'. (diff)
parentRemove usage of GString in sp-object.cpp (diff)
downloadinkscape-40d24d185b7e050deac650960464630f9af4b073.tar.gz
inkscape-40d24d185b7e050deac650960464630f9af4b073.zip
Merge branch 'jali/inkscape-ustring_refactor'
Removes usage of GString.
Diffstat (limited to 'src/ui/tools/star-tool.cpp')
-rw-r--r--src/ui/tools/star-tool.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/ui/tools/star-tool.cpp b/src/ui/tools/star-tool.cpp
index d5e782f68..cda3389f9 100644
--- a/src/ui/tools/star-tool.cpp
+++ b/src/ui/tools/star-tool.cpp
@@ -389,14 +389,12 @@ void StarTool::drag(Geom::Point p, guint state)
/* status text */
Inkscape::Util::Quantity q = Inkscape::Util::Quantity(r1, "px");
- GString *rads = g_string_new(q.string(desktop->namedview->display_units).c_str());
+ Glib::ustring rads = q.string(desktop->namedview->display_units);
this->message_context->setF(Inkscape::IMMEDIATE_MESSAGE,
( this->isflatsided?
_("<b>Polygon</b>: radius %s, angle %5g&#176;; with <b>Ctrl</b> to snap angle")
: _("<b>Star</b>: radius %s, angle %5g&#176;; with <b>Ctrl</b> to snap angle") ),
- rads->str, sp_round((arg1) * 180 / M_PI, 0.0001));
-
- g_string_free(rads, FALSE);
+ rads.c_str(), sp_round((arg1) * 180 / M_PI, 0.0001));
}
void StarTool::finishItem() {