Salome HOME
lot 10 - warnings for DTM - untested
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_ViewerDlg.cxx
index 29c307f496348e6e45a6f05514428c1566f539c7..a2b58bc1f4bdbb6428f2bd5d02902fc837ea8e61 100644 (file)
@@ -53,6 +53,8 @@ HYDROGUI_ViewerDlg::HYDROGUI_ViewerDlg( HYDROGUI_Module* theModule, const QStrin
   SUIT_Study* aStudy = 0;
 #endif
   myViewManager = new OCCViewer_ViewManager( aStudy, 0 );
+  bool IsChainedPan = aResMgr->booleanValue( "HYDRO", "chained_panning" );
+  myViewManager->setChainedOperations(IsChainedPan);
   OCCViewer_Viewer* aViewer = new OCCViewer_Viewer( dispTrihedron );
 
   aViewer->setBackground( OCCViewer_ViewFrame::TOP_LEFT,
@@ -121,7 +123,7 @@ bool HYDROGUI_ViewerDlg::event( QEvent* e )
         if ( !anAISContext.IsNull() && !aTrihedron.IsNull() )
         {
             viewer()->setTrihedronShown( false );
-            anAISContext->Display( aTrihedron );
+            anAISContext->Display( aTrihedron, true );
             anAISContext->Deactivate( aTrihedron );
         }
     }