diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2014-02-26 21:30:12 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx.marker.es> | 2014-02-26 21:30:12 +0000 |
| commit | 802a1a7537a691e36a6f41d50714905ba809e289 (patch) | |
| tree | 6af369bfc55a66c2b3461dae064f7a62d636f794 /src/widgets | |
| parent | Fixed some/all bugs related to continuing bspline/spiro curves advertaising b... (diff) | |
| parent | Added template functions as a casting-macro replacement. (diff) | |
| download | inkscape-802a1a7537a691e36a6f41d50714905ba809e289.tar.gz inkscape-802a1a7537a691e36a6f41d50714905ba809e289.zip | |
update to trunk
(bzr r11950.1.258)
Diffstat (limited to 'src/widgets')
| -rw-r--r-- | src/widgets/pencil-toolbar.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/widgets/pencil-toolbar.cpp b/src/widgets/pencil-toolbar.cpp index faaa4d44e..bf1acf289 100644 --- a/src/widgets/pencil-toolbar.cpp +++ b/src/widgets/pencil-toolbar.cpp @@ -102,8 +102,16 @@ 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); + //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); sp_pen_context_set_polyline_mode(pc); } } |
