From 326d8bbd6679e897a2c3ef06f2ff54d0680199f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=8B=D1=87=D0=BA=D0=BE=D0=B2=20=D0=90=D0=BD=D0=B4?= =?UTF-8?q?=D1=80=D0=B5=D0=B9?= Date: Mon, 27 May 2019 08:54:02 +0000 Subject: [PATCH] git-svn-id: svn://db.shs.com.ru/libs@538 a8b55f48-bf90-11e4-a774-851b48703e85 --- qglview/qglview.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/qglview/qglview.cpp b/qglview/qglview.cpp index 07710da..b079017 100644 --- a/qglview/qglview.cpp +++ b/qglview/qglview.cpp @@ -539,6 +539,7 @@ void QGLView::applyFog() { void QGLView::resizeGL(int width, int height) { if (!is_init) return; + if (width <= 0 || height <= 0) return; aspect = double(width) / double(height); if (renderer_) renderer_->resize(width, height); //qDebug() << "resize" << width << height;