]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Avoid the exception case:
authorpkv <pkv@opencascade.com>
Wed, 12 Oct 2005 12:00:02 +0000 (12:00 +0000)
committerpkv <pkv@opencascade.com>
Wed, 12 Oct 2005 12:00:02 +0000 (12:00 +0000)
Division by zero during the switch between two Gauss Points viewers

src/OBJECT/VISU_GaussPtsAct.cxx

index 29ac4f4708fec54c4f36cc57ce43428a9c0c62bb..37824f73ca3f252a64815e704d4fff237488ccc2 100644 (file)
@@ -1109,7 +1109,9 @@ VISU_GaussPtsAct2
   case vtkCommand::EnableEvent: 
   case vtkCommand::DisableEvent:
     myDeviceActor->SetVisibility(Superclass::GetVisibility() && myWidget->IsEnabled());
-    Update();
+    if (theEvent==vtkCommand::EnableEvent){
+      Update();
+    }
     break;
   case vtkCommand::EndInteractionEvent:
     //vtkLODActor::SetMapper(GetMapper());