summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b82b23e)
raw | patch | inline | side by side (parent: b82b23e)
author | cilix42 <cilix42@users.sourceforge.net> | |
Mon, 18 Aug 2008 00:38:41 +0000 (00:38 +0000) | ||
committer | cilix42 <cilix42@users.sourceforge.net> | |
Mon, 18 Aug 2008 00:38:41 +0000 (00:38 +0000) |
src/lpe-tool-context.cpp | patch | blob | history |
index fda5eca88002f9838a1d0878cc08e9b1989f4883..2ea652b18be0c92141d356ce107c745a3b870b1a 100644 (file)
--- 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;
}
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);