summaryrefslogtreecommitdiffstats
path: root/src/ui/tools/box3d-tool.cpp
diff options
context:
space:
mode:
authorJan Lingscheid <jan.linscheid@auticon.de>2017-09-11 12:40:00 +0000
committerJan Lingscheid <jan.lingscheid@auticon.de>2017-09-21 05:46:21 +0000
commit9bedc7179f307d9ee937c527f7e879a08e6ce98d (patch)
treec4e15fb85b471be5966ef37446a66dcfcc533b2b /src/ui/tools/box3d-tool.cpp
parentUpdate expected renderings. (diff)
downloadinkscape-9bedc7179f307d9ee937c527f7e879a08e6ce98d.tar.gz
inkscape-9bedc7179f307d9ee937c527f7e879a08e6ce98d.zip
Refactor Box3d::string_from_axes to use Glib::ustring
Diffstat (limited to 'src/ui/tools/box3d-tool.cpp')
-rw-r--r--src/ui/tools/box3d-tool.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ui/tools/box3d-tool.cpp b/src/ui/tools/box3d-tool.cpp
index 276385335..410fc3010 100644
--- a/src/ui/tools/box3d-tool.cpp
+++ b/src/ui/tools/box3d-tool.cpp
@@ -530,8 +530,9 @@ void Box3dTool::drag(guint /*state*/) {
} else {
// use default style
GString *pstring = g_string_new("");
- g_string_printf (pstring, "/tools/shapes/3dbox/%s", box3d_side_axes_string(side));
- desktop->applyCurrentOrToolStyle (side, pstring->str, false);
+ Glib::ustring tool_path = Glib::ustring::compose("/tools/shapes/3dbox/%1",
+ box3d_side_axes_string(side));
+ desktop->applyCurrentOrToolStyle (side, tool_path, false);
}
side->updateRepr(); // calls box3d_side_write() and updates, e.g., the axes string description