mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-01-01 04:10:56 -07: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:
parent
4cd0dc883f
commit
72617a1af7
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue