mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 20:03:47 +00:00
Fix 2 Linux assertation errors on gtk_window_resize() (#13718)
Update DropDown.cpp
This commit is contained in:
@@ -554,7 +554,8 @@ void DropDown::messureSize()
|
|||||||
wxWindow::SetSize(szContent);
|
wxWindow::SetSize(szContent);
|
||||||
#ifdef __WXGTK__
|
#ifdef __WXGTK__
|
||||||
// Gtk has a wrapper window for popup widget
|
// Gtk has a wrapper window for popup widget
|
||||||
gtk_window_resize (GTK_WINDOW (m_widget), szContent.x, szContent.y);
|
if (szContent.x > 0 && szContent.y > 0)
|
||||||
|
gtk_window_resize (GTK_WINDOW (m_widget), szContent.x, szContent.y);
|
||||||
#endif
|
#endif
|
||||||
if (!groups.empty() && subDropDown == nullptr) {
|
if (!groups.empty() && subDropDown == nullptr) {
|
||||||
subDropDown = new DropDown(items);
|
subDropDown = new DropDown(items);
|
||||||
|
|||||||
Reference in New Issue
Block a user