From 65637f95713da9d24d23ee58db535ea7649a5713 Mon Sep 17 00:00:00 2001 From: pkv Date: Wed, 12 Oct 2005 12:00:02 +0000 Subject: [PATCH] Avoid the exception case: Division by zero during the switch between two Gauss Points viewers --- src/OBJECT/VISU_GaussPtsAct.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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()); -- 2.39.2