summaryrefslogtreecommitdiffstats
path: root/src/widgets/rect-toolbar.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2014-11-15 19:08:00 +0000
committerJabiertxof <jtx@jtx.marker.es>2014-11-15 19:08:00 +0000
commit11fd7a608db9b2133bb0fc067545557fedfd2643 (patch)
treeb9a97dd449e410b7a6c0c2f496204cac0730338b /src/widgets/rect-toolbar.cpp
parentAdd vertical and horizontal modes (diff)
parentPurged GTKish SP_IS_RECT_CONTEXT/SP_RECT_CONTEXT macros. (diff)
downloadinkscape-11fd7a608db9b2133bb0fc067545557fedfd2643.tar.gz
inkscape-11fd7a608db9b2133bb0fc067545557fedfd2643.zip
update to trunk
(bzr r13682.1.12)
Diffstat (limited to 'src/widgets/rect-toolbar.cpp')
-rw-r--r--src/widgets/rect-toolbar.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/widgets/rect-toolbar.cpp b/src/widgets/rect-toolbar.cpp
index e1ce01eaf..b6b7e435d 100644
--- a/src/widgets/rect-toolbar.cpp
+++ b/src/widgets/rect-toolbar.cpp
@@ -404,7 +404,8 @@ static void rect_toolbox_watch_ec(SPDesktop* desktop, Inkscape::UI::Tools::ToolB
{
static sigc::connection changed;
- if (SP_IS_RECT_CONTEXT(ec)) {
+ // TODO fixme: use of dynamic_cast<> seems wrong here.
+ if (dynamic_cast<Inkscape::UI::Tools::RectTool *>(ec)) {
changed = sp_desktop_selection(desktop)->connectChanged(sigc::bind(sigc::ptr_fun(sp_rect_toolbox_selection_changed), holder));
} else {
if (changed)