From: ouv Date: Tue, 17 Apr 2012 11:56:46 +0000 (+0000) Subject: Bug IPAL22912: TC6.5.0: Create Local coordinate system in VTK view - Segmentation... X-Git-Tag: TRIPOLI_323~39 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=756fece661f62d244da8e487f8b1b44e1ef01c07;p=modules%2Fgeom.git Bug IPAL22912: TC6.5.0: Create Local coordinate system in VTK view - Segmentation violation --- 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 )