From 8e9322c60a5f9ffc4d1901ba86ee39887790e15a Mon Sep 17 00:00:00 2001 From: ouv Date: Mon, 25 Jul 2011 14:09:17 +0000 Subject: [PATCH] =?utf8?q?Additional=20minor=20fix=20for=20issue=20[GUITHA?= =?utf8?q?RE=202011]=2020527:=20Continuation=20an=20object=20modified=20wi?= =?utf8?q?thout=20making=20=C2=93Apply=C2=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/GLViewer/GLViewer_Viewer2d.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/GLViewer/GLViewer_Viewer2d.cxx b/src/GLViewer/GLViewer_Viewer2d.cxx index f80ee8baf..e18b3dc0c 100644 --- a/src/GLViewer/GLViewer_Viewer2d.cxx +++ b/src/GLViewer/GLViewer_Viewer2d.cxx @@ -1032,7 +1032,8 @@ bool GLViewer_Viewer2d::finishOperations( QMouseEvent* e ) { QRect aSelRect = vp->selectionRect(); vp->finishSelectByRect(); - if ( getSelector() && !aSelRect.isNull() ) + bool anIsValidRectangle = aSelRect.width() > 1 || aSelRect.height() > 1; + if ( getSelector() && anIsValidRectangle ) { bool append = bool ( e->modifiers() & GLViewer_Selector::appendKey() ); getSelector()->select( aSelRect, append ); -- 2.39.2