FIX:(mac)preview display
preview GCodeViewer Legend display doesn't disable when changing printer setting Change-Id: I97a1b9a1002a6327c31721f9b695a2fe2fe0dbf6
This commit is contained in:
parent
40a6fb2fe8
commit
ae0ad4136b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue