]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Improvement of selection mechanism
authorouv <ouv@opencascade.com>
Mon, 6 Sep 2010 13:19:03 +0000 (13:19 +0000)
committerouv <ouv@opencascade.com>
Mon, 6 Sep 2010 13:19:03 +0000 (13:19 +0000)
src/GLViewer/GLViewer_Context.cxx

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