From: vsv Date: Mon, 9 Feb 2015 12:28:23 +0000 (+0300) Subject: Fix for bug with interaction style problem X-Git-Tag: V_1.1.0~206 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=92094d8dca16822a0573220f5d0892bace5af6a6;p=modules%2Fshaper.git Fix for bug with interaction style problem --- diff --git a/src/NewGeom/NewGeom_SalomeViewer.cpp b/src/NewGeom/NewGeom_SalomeViewer.cpp index c3c887ae8..e68c971ec 100644 --- a/src/NewGeom/NewGeom_SalomeViewer.cpp +++ b/src/NewGeom/NewGeom_SalomeViewer.cpp @@ -162,7 +162,12 @@ void NewGeom_SalomeViewer::onMouseMove(SUIT_ViewWindow* theView, QMouseEvent* th bool NewGeom_SalomeViewer::canDragByMouse() const { OCCViewer_Viewer* aViewer = mySelector->viewer(); - return (aViewer->interactionStyle() != 0); + SUIT_ViewWindow* aWnd = aViewer->getViewManager()->getActiveView(); + OCCViewer_ViewWindow* aViewWnd = dynamic_cast(aWnd); + if (aViewWnd) { + return (aViewWnd->interactionStyle() == 0); + } + return true; }