From ae0ad4136b24c248ce5d33cbc1c5058bfb319709 Mon Sep 17 00:00:00 2001 From: "liz.li" Date: Mon, 20 Feb 2023 15:19:13 +0800 Subject: [PATCH] FIX:(mac)preview display preview GCodeViewer Legend display doesn't disable when changing printer setting Change-Id: I97a1b9a1002a6327c31721f9b695a2fe2fe0dbf6 --- src/slic3r/GUI/GUI_ObjectList.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/slic3r/GUI/GUI_ObjectList.cpp b/src/slic3r/GUI/GUI_ObjectList.cpp index 82a5adcbd2..3cc18172e2 100644 --- a/src/slic3r/GUI/GUI_ObjectList.cpp +++ b/src/slic3r/GUI/GUI_ObjectList.cpp @@ -92,6 +92,9 @@ ObjectList::ObjectList(wxWindow* parent) : Bind(wxEVT_DATAVIEW_SELECTION_CHANGED, [this](wxDataViewEvent& event) { // detect the current mouse position here, to pass it to list_manipulation() method // if we detect it later, the user may have moved the mouse pointer while calculations are performed, and this would mess-up the HitTest() call performed into list_manipulation() + if (!GetScreenRect().Contains(wxGetMousePosition())) { + return; + } #ifndef __WXOSX__ const wxPoint mouse_pos = this->get_mouse_position_in_control(); #endif