From: ouv Date: Mon, 25 Jul 2011 14:09:17 +0000 (+0000) Subject: Additional minor fix for issue [GUITHARE 2011] 20527: Continuation an object modified... X-Git-Tag: CTH_V17a~23 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8e9322c60a5f9ffc4d1901ba86ee39887790e15a;p=modules%2Fgui.git Additional minor fix for issue [GUITHARE 2011] 20527: Continuation an object modified without making “Apply” --- 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 );