From: apo Date: Thu, 2 Mar 2006 08:02:06 +0000 (+0000) Subject: To avoid crash in non VVTK viewer (when VISU_GaussPtsAct::myWidgetCtrl not initilized) X-Git-Tag: mergeto_trunk_13Mar06~20 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d24f720db8047381a104256eb6dc923a29ab0618;p=modules%2Fvisu.git To avoid crash in non VVTK viewer (when VISU_GaussPtsAct::myWidgetCtrl not initilized) --- 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() );