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:
zhou.xu 2025-04-10 19:15:47 +08:00 committed by Noisyfox
parent 4cd0dc883f
commit 72617a1af7

View file

@ -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();
}
}