diff options
| author | Jabier Arraiza <jabier.arraiza@marker.es> | 2019-07-30 21:44:14 +0000 |
|---|---|---|
| committer | Jabier Arraiza <jabier.arraiza@marker.es> | 2019-07-31 05:03:14 +0000 |
| commit | 873952663b4dfd5bc61b05895a0768782fc486ea (patch) | |
| tree | 4ca5603d5daf8abef1d3b8012eb709b9f6c8f3ae /src | |
| parent | fix coding style (diff) | |
| download | inkscape-873952663b4dfd5bc61b05895a0768782fc486ea.tar.gz inkscape-873952663b4dfd5bc61b05895a0768782fc486ea.zip | |
fix compiling issues
Diffstat (limited to 'src')
| -rw-r--r-- | src/ui/tools/tool-base.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/ui/tools/tool-base.cpp b/src/ui/tools/tool-base.cpp index 1cf537e79..ee0e27e4b 100644 --- a/src/ui/tools/tool-base.cpp +++ b/src/ui/tools/tool-base.cpp @@ -945,9 +945,6 @@ bool ToolBase::block_button(GdkEvent *event) case 1: this->_button1on = true; break; - case 2: - this->_button2on = true; - break; case 3: this->_button3on = true; break; @@ -958,9 +955,6 @@ bool ToolBase::block_button(GdkEvent *event) case 1: this->_button1on = false; break; - case 2: - this->_button2on = false; - break; case 3: this->_button3on = false; break; @@ -1118,7 +1112,7 @@ gint sp_event_context_virtual_root_handler(ToolBase * event_context, GdkEvent * if (event_context) { - if (block_button(event)) { + if (event_context->block_button(event)) { return false; } @@ -1173,7 +1167,7 @@ gint sp_event_context_virtual_item_handler(ToolBase * event_context, SPItem * it gint ret = false; if (event_context) { // If no event-context is available then do nothing, otherwise Inkscape would crash // (see the comment in SPDesktop::set_event_context, and bug LP #622350) - if (block_button(event)) { + if (event_context->block_button(event)) { return false; } // et = (SP_EVENT_CONTEXT_CLASS(G_OBJECT_GET_CLASS(event_context)))->item_handler(event_context, item, event); |
