From: pkv Date: Wed, 12 Oct 2005 12:00:02 +0000 (+0000) Subject: Avoid the exception case: X-Git-Tag: BR-D5-38-2003_D2005-12-10~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=65637f95713da9d24d23ee58db535ea7649a5713;p=modules%2Fvisu.git Avoid the exception case: Division by zero during the switch between two Gauss Points viewers --- diff --git a/src/OBJECT/VISU_GaussPtsAct.cxx b/src/OBJECT/VISU_GaussPtsAct.cxx index 29ac4f47..37824f73 100644 --- a/src/OBJECT/VISU_GaussPtsAct.cxx +++ b/src/OBJECT/VISU_GaussPtsAct.cxx @@ -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());