ui/qt/widget.cpp

changeset 549
63d53ce4dd67
parent 546
5b00f1e55f4e
--- a/ui/qt/widget.cpp	Thu Apr 03 21:24:43 2025 +0200
+++ b/ui/qt/widget.cpp	Fri Apr 04 22:08:34 2025 +0200
@@ -53,7 +53,7 @@
 }
 
 void ui_widget_set_size(UIWIDGET w, int width, int height) {
-    w->resize(width >= 0 ? width : w->width(), height >= 0 ? w->height());
+    w->resize(width >= 0 ? width : w->width(), height >= 0 ? height : w->height());
 }
 
 void ui_widget_redraw(UIWIDGET w) {

mercurial