diff options
| author | Jan Lingscheid <jan.linscheid@auticon.de> | 2017-09-12 08:13:54 +0000 |
|---|---|---|
| committer | Jan Lingscheid <jan.lingscheid@auticon.de> | 2017-09-21 05:46:25 +0000 |
| commit | 36863a0e699b5a7cba346bca8a26e729be5a2f87 (patch) | |
| tree | aed4f939d2e0d5f6bd550fee0bb27f8dd719a285 /src/ui/tools/star-tool.cpp | |
| parent | Remove unused GString in ui/tools/box3d-tool.cpp (diff) | |
| download | inkscape-36863a0e699b5a7cba346bca8a26e729be5a2f87.tar.gz inkscape-36863a0e699b5a7cba346bca8a26e729be5a2f87.zip | |
Remove remaining usage of GString in ui/tools/*
Diffstat (limited to 'src/ui/tools/star-tool.cpp')
| -rw-r--r-- | src/ui/tools/star-tool.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/ui/tools/star-tool.cpp b/src/ui/tools/star-tool.cpp index 32f0e6d92..05a1f8f7c 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°; with <b>Ctrl</b> to snap angle") : _("<b>Star</b>: radius %s, angle %5g°; 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() { |
