From 756fece661f62d244da8e487f8b1b44e1ef01c07 Mon Sep 17 00:00:00 2001 From: ouv Date: Tue, 17 Apr 2012 11:56:46 +0000 Subject: [PATCH] Bug IPAL22912: TC6.5.0: Create Local coordinate system in VTK view - Segmentation violation --- src/GEOMGUI/GEOM_Displayer.cxx | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/GEOMGUI/GEOM_Displayer.cxx b/src/GEOMGUI/GEOM_Displayer.cxx index b4f7abfe7..6af5ba4e6 100644 --- a/src/GEOMGUI/GEOM_Displayer.cxx +++ b/src/GEOMGUI/GEOM_Displayer.cxx @@ -1245,15 +1245,13 @@ void GEOM_Displayer::Update( SALOME_VTKPrs* prs ) } } - if ( HasWidth() ) + if ( aGeomGActor ) { - aGeomGActor->SetWidth( GetWidth() ); - } - - - if ( HasIsosWidth() ) - { - aGeomGActor->SetIsosWidth( GetIsosWidth() ); + if ( HasWidth() ) + aGeomGActor->SetWidth( GetWidth() ); + + if ( HasIsosWidth() ) + aGeomGActor->SetIsosWidth( GetIsosWidth() ); } if ( myToActivate ) -- 2.39.2