Fixed view preferred size.

This commit is contained in:
Leonardo 2020-12-21 17:34:42 -08:00
parent aa1d802c04
commit 9f5782294e

View file

@ -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)