]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
To avoid an exception during the Plot2d viewer creation.
authormkr <mkr@opencascade.com>
Fri, 29 Feb 2008 13:12:13 +0000 (13:12 +0000)
committermkr <mkr@opencascade.com>
Fri, 29 Feb 2008 13:12:13 +0000 (13:12 +0000)
src/Plot2d/Plot2d_ViewWindow.cxx

index ff40d12d3db056e2d1d9e7dec74f07f56a1343ce..84f55130718ba1bf298c827534f403d198c3e2f0 100755 (executable)
@@ -225,7 +225,7 @@ void Plot2d_ViewWindow::createActions()
   aScaleAction->insertAction( mgr->action( FitAllId  ) );
   aScaleAction->insertAction( mgr->action( FitRectId ) );
   aScaleAction->insertAction( mgr->action( ZoomId    ) );
-  mgr->registerAction( aAction, ScaleOpId );
+  mgr->registerAction( aScaleAction, ScaleOpId );
 
   // 3. Moving operations
 
@@ -251,7 +251,7 @@ void Plot2d_ViewWindow::createActions()
   QtxMultiAction* aPanAction = new QtxMultiAction( this );
   aPanAction->insertAction( mgr->action( PanId ) );
   aPanAction->insertAction( mgr->action( GlobalPanId ) );
-  mgr->registerAction( aAction, MoveOpId );
+  mgr->registerAction( aPanAction, MoveOpId );
 
   // 4. Curve type operations