diff libgui/graphics/Canvas.h @ 20507:2d415c68213f

Don't use GL_SELECT to find axes objects in Qt figures (bug #45540) * Canvas.h (Canvas::select_object): add a boolean argument that defaults to false. Indicate the method should only look for axes abjects * Canvas.cc (Canvas::select_object): avoid using GL_SELECT mechanism to find axes only. Compare mouse coordinates with all axes limits.
author Pantxo Diribarne <pantxo.diribarne@gmail.com>
date Sat, 25 Jul 2015 13:20:21 +0200
parents 062422f2e399
children dcfbf4c1c3c8
line wrap: on
line diff
--- a/libgui/graphics/Canvas.h	Sun Aug 23 14:55:01 2015 +0200
+++ b/libgui/graphics/Canvas.h	Sat Jul 25 13:20:21 2015 +0200
@@ -109,7 +109,8 @@
 
   void annotation_callback (const octave_value_list& args);
   void select_object (graphics_object obj, QMouseEvent* event, 
-                      graphics_object &currentObj, graphics_object &axesObj);
+                      graphics_object &currentObj, graphics_object &axesObj, 
+                      bool axes_only = false);
 
 private:
   graphics_handle m_handle;