From 2e10ef300bba96a7f91f1b0694505166b7123a66 Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Fri, 27 May 2022 08:31:13 +0200 Subject: [PATCH] Fixed implementation of LayoutView#resize in non-Qt case --- src/laybasic/laybasic/layViewObject.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/laybasic/laybasic/layViewObject.cc b/src/laybasic/laybasic/layViewObject.cc index fc307b75f..3fc597c20 100644 --- a/src/laybasic/laybasic/layViewObject.cc +++ b/src/laybasic/laybasic/layViewObject.cc @@ -978,16 +978,16 @@ ViewObjectUI::resize (unsigned int w, unsigned int h) { m_widget_width = w; m_widget_height = h; -#if defined(HAVE_QT) +#if defined(HAVE_QT) if (mp_widget) { mp_widget->resize (w, h); } +#endif // don't wait until the layout system informs us - which may never take place when - // the widget isn't shown. + // the widget isn't shown. In the non-Qt case we need it anyway here. resize_event (w, h); -#endif } int