fix ui_widget_set_size (QT)

3 days ago

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Fri, 04 Apr 2025 22:08:34 +0200 (3 days ago)
changeset 549
63d53ce4dd67
parent 548
198756ab2845
child 550
0412c4c1048e

fix ui_widget_set_size (QT)

ui/qt/widget.cpp file | annotate | diff | comparison | revisions
--- 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