From 9f5782294e7ed1bd8fd04c2b537d008cce167cc1 Mon Sep 17 00:00:00 2001 From: Leonardo Date: Mon, 21 Dec 2020 17:34:42 -0800 Subject: [PATCH] Fixed view preferred size. --- common/lc_viewwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/lc_viewwidget.cpp b/common/lc_viewwidget.cpp index 83a41330..e642bea8 100644 --- a/common/lc_viewwidget.cpp +++ b/common/lc_viewwidget.cpp @@ -85,7 +85,7 @@ lcViewWidget::~lcViewWidget() QSize lcViewWidget::sizeHint() const { - return mPreferredSize.isNull() ? QGLWidget::sizeHint() : mPreferredSize; + return mPreferredSize.isEmpty() ? QGLWidget::sizeHint() : mPreferredSize; } void lcViewWidget::SetView(lcGLWidget* View)