]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Selection mechanism (minor change)
authorouv <ouv@opencascade.com>
Wed, 28 Jul 2010 07:21:49 +0000 (07:21 +0000)
committerouv <ouv@opencascade.com>
Wed, 28 Jul 2010 07:21:49 +0000 (07:21 +0000)
src/GLViewer/GLViewer_ViewPort2d.cxx

index 9710a4a2d7721041217830de593dca48bad76837..aed83fe4a8aa8de55155c8125ed962334e7467b9 100644 (file)
@@ -1158,7 +1158,7 @@ BlockStatus GLViewer_ViewPort2d::currentBlock()
     if( myIsDragProcess == inDrag && myCurDragPosX != NULL && myCurDragPosY != NULL)
         return BlockStatus(BS_Highlighting | BS_Selection);
 
-    if( mypFirstPoint && mypLastPoint )
+    if( mypFirstPoint && mypLastPoint && ( *mypFirstPoint != *mypLastPoint ) )
         return BlockStatus(BS_Highlighting | BS_Selection);
 
     return BS_NoBlock;