mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-14 17:12:07 +00:00
ENH:fix the issue where images can still be displayed when drawn from the top left corner in Mac
jira: STUDIO-11487 Change-Id: I9878bd9fe47f4c9067ca224377677eb2a0f93ffc (cherry picked from commit e2191a9e1506cefaaca5fd214ccc5f85a26128f6)
This commit is contained in:
@@ -1930,7 +1930,7 @@ void Sidebar::on_leave_image_printer_bed(wxMouseEvent &evt) {
|
||||
auto pos_x = evt.GetX();
|
||||
auto pos_y = evt.GetY();
|
||||
auto rect = p->image_printer_bed->GetRect();
|
||||
if (pos_x < 0 || pos_y < 0 || pos_x >= rect.GetWidth() && p->big_bed_image_popup) {
|
||||
if ((pos_x <= 0 || pos_y <= 0 || pos_x >= rect.GetWidth()) && p->big_bed_image_popup) {
|
||||
p->big_bed_image_popup->on_hide();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user