]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for bug with interaction style problem
authorvsv <vitaly.smetannikov@opencascade.com>
Mon, 9 Feb 2015 12:28:23 +0000 (15:28 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Mon, 9 Feb 2015 12:28:23 +0000 (15:28 +0300)
src/NewGeom/NewGeom_SalomeViewer.cpp

index c3c887ae8e71763f04ae01fdc30409815be02ff5..e68c971ec737c65036659610c2ba598e2caed995 100644 (file)
@@ -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<OCCViewer_ViewWindow*>(aWnd);
+  if (aViewWnd) {
+    return (aViewWnd->interactionStyle() == 0);
+  }
+  return true;
 }