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
This commit is contained in:
zhou.xu 2025-04-10 19:15:47 +08:00 committed by lane.wei
parent 85378a7e99
commit e2191a9e15
1 changed files with 1 additions and 1 deletions

View File

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