summaryrefslogtreecommitdiffstats
path: root/src/widgets/pencil-toolbar.cpp
diff options
context:
space:
mode:
authorMarkus Engel <markus.engel@tum.de>2014-03-26 21:14:16 +0000
committerMarkus Engel <markus.engel@tum.de>2014-03-26 21:14:16 +0000
commit2af3266fc2db760a1c8771e5945a0c94587d18e8 (patch)
tree7424a03211c9a27311d034ecd5366eecde58fb85 /src/widgets/pencil-toolbar.cpp
parentTwo more changes in libuemf to silence analyzer. (diff)
downloadinkscape-2af3266fc2db760a1c8771e5945a0c94587d18e8.tar.gz
inkscape-2af3266fc2db760a1c8771e5945a0c94587d18e8.zip
Cleaned up includes of tools / revert experimental casting macro replacements from r13061
(bzr r13216)
Diffstat (limited to 'src/widgets/pencil-toolbar.cpp')
-rw-r--r--src/widgets/pencil-toolbar.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/widgets/pencil-toolbar.cpp b/src/widgets/pencil-toolbar.cpp
index 6598e995a..682de8594 100644
--- a/src/widgets/pencil-toolbar.cpp
+++ b/src/widgets/pencil-toolbar.cpp
@@ -73,16 +73,8 @@ static void freehand_mode_changed(EgeSelectOneAction* act, GObject* tbl)
// in pen tool we have more options than in pencil tool; if one of them was chosen, we do any
// preparatory work here
- //if (SP_IS_PEN_CONTEXT(desktop->event_context)) {
- // Inkscape::UI::Tools::PenTool *pc = SP_PEN_CONTEXT(desktop->event_context);
- // sp_pen_context_set_polyline_mode(pc);
- //}
-
- using namespace Inkscape::UI;
- using Inkscape::UI::Tools::PenTool;
-
- if (Tool::is_a<PenTool>(desktop->event_context)) {
- PenTool* pc = Tool::to<PenTool>(desktop->event_context);
+ if (SP_IS_PEN_CONTEXT(desktop->event_context)) {
+ Inkscape::UI::Tools::PenTool *pc = SP_PEN_CONTEXT(desktop->event_context);
pc->setPolylineMode();
}
}