]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Bug: polygone sketcher is not activated
authorvsr <vsr@opencascade.com>
Thu, 17 Jul 2008 07:52:12 +0000 (07:52 +0000)
committervsr <vsr@opencascade.com>
Thu, 17 Jul 2008 07:52:12 +0000 (07:52 +0000)
src/OCCViewer/OCCViewer_ViewWindow.cxx

index 40dbe87b57371a766932869ac4392725c3f4023b..5544123d21da12d608efa69a2cc78b00415f7cf6 100755 (executable)
@@ -751,7 +751,7 @@ void OCCViewer_ViewWindow::vpMouseMoveEvent( QMouseEvent* theEvent )
        for ( it = mySketchers.begin(); it != mySketchers.end() && !sketcher; ++it )
        {
          OCCViewer_ViewSketcher* sk = (*it);
-         if( sk->isDefault() && sk->sketchButton() & ( aState & Qt::MouseButtonMask ) )
+         if( sk->isDefault() && sk->sketchButton() == aButton )
            sketcher = sk;
        }
        if ( sketcher && myCurSketch == -1 )