]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Additional minor fix for issue [GUITHARE 2011] 20527: Continuation an object modified...
authorouv <ouv@opencascade.com>
Mon, 25 Jul 2011 14:09:17 +0000 (14:09 +0000)
committerouv <ouv@opencascade.com>
Mon, 25 Jul 2011 14:09:17 +0000 (14:09 +0000)
src/GLViewer/GLViewer_Viewer2d.cxx

index f80ee8bafded4ed7b9937f143ac88eb1368e6308..e18b3dc0cfdec5fc8fb97c424664f1de65d626b0 100644 (file)
@@ -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 );