From: vsr Date: Thu, 17 Jul 2008 07:52:12 +0000 (+0000) Subject: Bug: polygone sketcher is not activated X-Git-Tag: TG_TRIPOLI_qt4_porting~54 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1d69c6ad7c7ba865d515228c194dedee8408c3b3;p=modules%2Fgui.git Bug: polygone sketcher is not activated --- diff --git a/src/OCCViewer/OCCViewer_ViewWindow.cxx b/src/OCCViewer/OCCViewer_ViewWindow.cxx index 40dbe87b5..5544123d2 100755 --- a/src/OCCViewer/OCCViewer_ViewWindow.cxx +++ b/src/OCCViewer/OCCViewer_ViewWindow.cxx @@ -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 )