mirror of
https://github.com/KLayout/klayout.git
synced 2026-08-28 17:06:31 +02:00
Fixed implementation of LayoutView#resize in non-Qt case
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user