diff options
| author | Jan Lingscheid <jan.linscheid@auticon.de> | 2017-09-12 07:36:35 +0000 |
|---|---|---|
| committer | Jan Lingscheid <jan.lingscheid@auticon.de> | 2017-09-21 05:46:24 +0000 |
| commit | f392aac0d90b79faad248fec46450eabea0671d6 (patch) | |
| tree | e567f984f7c78f05d2ac63b147e67c120afe3dc5 /src/ui | |
| parent | Remove usage of GString from tool/node.cpp (diff) | |
| download | inkscape-f392aac0d90b79faad248fec46450eabea0671d6.tar.gz inkscape-f392aac0d90b79faad248fec46450eabea0671d6.zip | |
Remove usage of GString from ui/tools/spiral-tool.cpp
Diffstat (limited to 'src/ui')
| -rw-r--r-- | src/ui/tools/spiral-tool.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ui/tools/spiral-tool.cpp b/src/ui/tools/spiral-tool.cpp index b681aec38..d2be32855 100644 --- a/src/ui/tools/spiral-tool.cpp +++ b/src/ui/tools/spiral-tool.cpp @@ -372,11 +372,10 @@ void SpiralTool::drag(Geom::Point const &p, guint state) { /* status text */ Inkscape::Util::Quantity q = Inkscape::Util::Quantity(rad, "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, _("<b>Spiral</b>: radius %s, angle %5g°; with <b>Ctrl</b> to snap angle"), - rads->str, sp_round((arg + 2.0*M_PI*this->spiral->revo)*180/M_PI, 0.0001)); - g_string_free(rads, FALSE); + rads.c_str(), sp_round((arg + 2.0*M_PI*this->spiral->revo)*180/M_PI, 0.0001)); } void SpiralTool::finishItem() { |
