mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-06-23 20:22:04 +00:00
FIX: wxDisplay crash on wxNOT_FOUND
Change-Id: If7b936d361873e20fb71b7fc35c9d270cd39a763
This commit is contained in:
@@ -354,7 +354,7 @@ void DropDown::autoPosition()
|
||||
}
|
||||
if (GetPosition().y > pos.y) {
|
||||
// may exceed
|
||||
auto drect = wxDisplay(wxDisplay::GetFromWindow(GetParent())).GetGeometry();
|
||||
auto drect = wxDisplay(GetParent()).GetGeometry();
|
||||
if (GetPosition().y + size.y + 10 > drect.GetBottom()) {
|
||||
if (use_content_width && texts.size() <= 15) size.x += 6;
|
||||
size.y = drect.GetBottom() - GetPosition().y - 10;
|
||||
|
||||
Reference in New Issue
Block a user