Salome HOME
Bug IPAL22912: TC6.5.0: Create Local coordinate system in VTK view - Segmentation...
authorouv <ouv@opencascade.com>
Tue, 17 Apr 2012 11:56:46 +0000 (11:56 +0000)
committerouv <ouv@opencascade.com>
Tue, 17 Apr 2012 11:56:46 +0000 (11:56 +0000)
src/GEOMGUI/GEOM_Displayer.cxx

index b4f7abfe7b0e0f8d5a60c466f32908b70dea9646..6af5ba4e64f0e6eb3c9e3feaa050541ee618c2c0 100644 (file)
@@ -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 )