From: mkr Date: Fri, 29 Feb 2008 13:12:13 +0000 (+0000) Subject: To avoid an exception during the Plot2d viewer creation. X-Git-Tag: V5_0_0a1~34 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9ab5950d0fe53eae759c11c0fa76d280042d5ba6;p=modules%2Fgui.git To avoid an exception during the Plot2d viewer creation. --- diff --git a/src/Plot2d/Plot2d_ViewWindow.cxx b/src/Plot2d/Plot2d_ViewWindow.cxx index ff40d12d3..84f551307 100755 --- a/src/Plot2d/Plot2d_ViewWindow.cxx +++ b/src/Plot2d/Plot2d_ViewWindow.cxx @@ -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