From 1d69c6ad7c7ba865d515228c194dedee8408c3b3 Mon Sep 17 00:00:00 2001 From: vsr Date: Thu, 17 Jul 2008 07:52:12 +0000 Subject: [PATCH] Bug: polygone sketcher is not activated --- src/OCCViewer/OCCViewer_ViewWindow.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) -- 2.39.2