diff options
| author | Jabiertxof <jabier.arraiza@marker.es> | 2019-07-30 17:40:31 +0000 |
|---|---|---|
| committer | Jabier Arraiza <jabier.arraiza@marker.es> | 2019-07-31 05:03:14 +0000 |
| commit | 14888ccdd79dd8b68514f3edd218a76e917f706a (patch) | |
| tree | ed50a617f70d1f90a49162d3bdad0faaddcfcfeb /src/ui/tools/tool-base.cpp | |
| parent | Allow update mouse state when motion (diff) | |
| download | inkscape-14888ccdd79dd8b68514f3edd218a76e917f706a.tar.gz inkscape-14888ccdd79dd8b68514f3edd218a76e917f706a.zip | |
fix coding style
Diffstat (limited to 'src/ui/tools/tool-base.cpp')
| -rw-r--r-- | src/ui/tools/tool-base.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/ui/tools/tool-base.cpp b/src/ui/tools/tool-base.cpp index 2cc05fa47..1cf537e79 100644 --- a/src/ui/tools/tool-base.cpp +++ b/src/ui/tools/tool-base.cpp @@ -977,7 +977,6 @@ bool ToolBase::block_button(GdkEvent *event) } else { this->_button3on = false; } - } if (this->_button1on == true && this->_button3on == true) { return true; @@ -1118,11 +1117,11 @@ gint sp_event_context_virtual_root_handler(ToolBase * event_context, GdkEvent * gint ret = false; if (event_context) { - + if (block_button(event)) { return false; } - + // The root handler also handles pressing the space key. // This will toggle the current tool and delete the current one. // Thus, save a pointer to the desktop before calling it. @@ -1177,7 +1176,7 @@ gint sp_event_context_virtual_item_handler(ToolBase * event_context, SPItem * it if (block_button(event)) { return false; } - //et = (SP_EVENT_CONTEXT_CLASS(G_OBJECT_GET_CLASS(event_context)))->item_handler(event_context, item, event); + // et = (SP_EVENT_CONTEXT_CLASS(G_OBJECT_GET_CLASS(event_context)))->item_handler(event_context, item, event); ret = event_context->item_handler(item, event); if (!ret) { |
