From 9c02f3ab80b14b8453cc4332b1a9db153cede6b5 Mon Sep 17 00:00:00 2001 From: Joseph Lenox Date: Sat, 12 May 2018 13:39:45 -0500 Subject: [PATCH] Set some default values. --- src/GUI/Plater/Plate2D.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/GUI/Plater/Plate2D.hpp b/src/GUI/Plater/Plate2D.hpp index 22f663cb7..064749757 100644 --- a/src/GUI/Plater/Plate2D.hpp +++ b/src/GUI/Plater/Plate2D.hpp @@ -76,8 +76,8 @@ private: bool user_drawn_background {(the_os == OS::Mac ? false : true)}; /// The object id and selected - InstanceIdx selected_instance; - InstanceIdx drag_object; + InstanceIdx selected_instance {-1, -1}; + InstanceIdx drag_object {-1, -1}; /// Handle mouse-move events void mouse_drag(wxMouseEvent& e); @@ -85,7 +85,7 @@ private: void mouse_up(wxMouseEvent& e); void mouse_dclick(wxMouseEvent& e); - wxPoint drag_start_pos {}; + wxPoint drag_start_pos {wxPoint(-1, -1)}; /// Handle repaint events