From d24f720db8047381a104256eb6dc923a29ab0618 Mon Sep 17 00:00:00 2001 From: apo Date: Thu, 2 Mar 2006 08:02:06 +0000 Subject: [PATCH] To avoid crash in non VVTK viewer (when VISU_GaussPtsAct::myWidgetCtrl not initilized) --- src/OBJECT/VISU_GaussPtsAct.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/OBJECT/VISU_GaussPtsAct.cxx b/src/OBJECT/VISU_GaussPtsAct.cxx index acaef85a..8c06e2fc 100644 --- a/src/OBJECT/VISU_GaussPtsAct.cxx +++ b/src/OBJECT/VISU_GaussPtsAct.cxx @@ -556,7 +556,7 @@ VISU_GaussPtsAct case 'M' : case 'm' : { - if( myWidgetCtrl->GetEnabled() ) + if( IsSegmentationEnabled() ) { this->ChangeMagnification( myInteractor->GetShiftKey() ); return; @@ -568,7 +568,7 @@ VISU_GaussPtsAct case 'D' : case 'd' : { - if( myWidgetCtrl->GetEnabled() && myWidgetCtrl->IsSphereActive() ) + if( IsSegmentationEnabled() && myWidgetCtrl->IsSphereActive() ) { VISU_SphereWidget* aSphereWidget = myWidgetCtrl->GetSphereWidget(); aSphereWidget->ChangeRadius( myInteractor->GetShiftKey() ); -- 2.39.2