summaryrefslogtreecommitdiffstats
path: root/src/lpe-tool-context.cpp
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2008-08-18 00:38:41 +0000
committercilix42 <cilix42@users.sourceforge.net>2008-08-18 00:38:41 +0000
commit818ee9a25ac4b7cc457983f0bdf479af53ffde44 (patch)
tree5053cd56e8960675120cb1549103ba906530e72b /src/lpe-tool-context.cpp
parentChange cursor in LPETool when over stroke; call root handler of parent contex... (diff)
downloadinkscape-818ee9a25ac4b7cc457983f0bdf479af53ffde44.tar.gz
inkscape-818ee9a25ac4b7cc457983f0bdf479af53ffde44.zip
Since we know what the parent context is we don't need to check whether it has a root handler
(bzr r6659)
Diffstat (limited to 'src/lpe-tool-context.cpp')
-rw-r--r--src/lpe-tool-context.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/lpe-tool-context.cpp b/src/lpe-tool-context.cpp
index fda5eca88..2ea652b18 100644
--- a/src/lpe-tool-context.cpp
+++ b/src/lpe-tool-context.cpp
@@ -241,11 +241,7 @@ sp_lpetool_context_root_handler(SPEventContext *event_context, GdkEvent *event)
if (sp_pen_context_has_waiting_LPE(lc)) {
// quit when we are waiting for a LPE to be applied
g_print ("LPETool has waiting LPE. We call the pen tool parent context and return\n");
-
- if (((SPEventContextClass *) lpetool_parent_class)->root_handler) {
- ret = ((SPEventContextClass *) lpetool_parent_class)->root_handler(event_context, event);
- }
-
+ ret = ((SPEventContextClass *) lpetool_parent_class)->root_handler(event_context, event);
return ret;
}
@@ -271,9 +267,7 @@ sp_lpetool_context_root_handler(SPEventContext *event_context, GdkEvent *event)
sp_pen_context_wait_for_LPE_mouse_clicks(lc, type, Effect::acceptsNumClicks(type));
// we pass the mouse click on to pen tool as the first click which it should collect
- if (((SPEventContextClass *) lpetool_parent_class)->root_handler) {
- ret = ((SPEventContextClass *) lpetool_parent_class)->root_handler(event_context, event);
- }
+ ret = ((SPEventContextClass *) lpetool_parent_class)->root_handler(event_context, event);
/**
SPDesktop *desktop = SP_EVENT_CONTEXT_DESKTOP(dc);