From: ouv Date: Wed, 28 Jul 2010 07:21:49 +0000 (+0000) Subject: Selection mechanism (minor change) X-Git-Tag: DIAGRAM_0_1~47 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8f9cdd736838b38d643f9bc8a84b84ad0291c262;p=modules%2Fgui.git Selection mechanism (minor change) --- diff --git a/src/GLViewer/GLViewer_ViewPort2d.cxx b/src/GLViewer/GLViewer_ViewPort2d.cxx index 9710a4a2d..aed83fe4a 100644 --- a/src/GLViewer/GLViewer_ViewPort2d.cxx +++ b/src/GLViewer/GLViewer_ViewPort2d.cxx @@ -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;