From 9ab5950d0fe53eae759c11c0fa76d280042d5ba6 Mon Sep 17 00:00:00 2001 From: mkr Date: Fri, 29 Feb 2008 13:12:13 +0000 Subject: [PATCH] To avoid an exception during the Plot2d viewer creation. --- src/Plot2d/Plot2d_ViewWindow.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.2