From: ouv Date: Mon, 6 Sep 2010 13:19:03 +0000 (+0000) Subject: Improvement of selection mechanism X-Git-Tag: DIAGRAM_0_1~34 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=147fd7506c64abc026ad8af26ac3159d35ec2f9f;p=modules%2Fgui.git Improvement of selection mechanism --- diff --git a/src/GLViewer/GLViewer_Context.cxx b/src/GLViewer/GLViewer_Context.cxx index e76eb0ea9..a359518b6 100644 --- a/src/GLViewer/GLViewer_Context.cxx +++ b/src/GLViewer/GLViewer_Context.cxx @@ -106,7 +106,8 @@ int GLViewer_Context::MoveTo( int xi, int yi, bool byCircle ) GLViewer_Object* object = *it; GLViewer_Rect* rect = object->getUpdateRect(); - if( rect->contains( GLViewer_Pnt( x, y ) ) ) + if( object->isSelectable() && + rect->contains( GLViewer_Pnt( x, y ) ) ) { onObject = GL_TRUE; object->highlight( x, y, myTolerance, GL_FALSE );