From 8f9cdd736838b38d643f9bc8a84b84ad0291c262 Mon Sep 17 00:00:00 2001 From: ouv Date: Wed, 28 Jul 2010 07:21:49 +0000 Subject: [PATCH] Selection mechanism (minor change) --- src/GLViewer/GLViewer_ViewPort2d.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2