]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix for bug IPAL19512: Error message is shown after selection of Gauss point outside... TG_start_Deformed_CutPlanes V4_1_2 V4_1_2rc3
authormkr <mkr@opencascade.com>
Wed, 30 Apr 2008 07:00:37 +0000 (07:00 +0000)
committermkr <mkr@opencascade.com>
Wed, 30 Apr 2008 07:00:37 +0000 (07:00 +0000)
src/VTKViewer/VTKViewer_Trihedron.cxx

index f50d67b30b862bc967e3ef2efcb92107dde0b9a8..d9f5d3321d71e11149d14ac0f801d7bc9409ade4 100755 (executable)
@@ -81,7 +81,7 @@ void VTKViewer_UnScaledActor::Render(vtkRenderer *theRenderer)
     vtkFloatingPointType aPrecision = 1.0E-3;
     vtkFloatingPointType anOldScale = GetScale()[0];
     vtkFloatingPointType aScale = mySize*aWorldDiag/aWinDiag/aLength*sqrt(vtkFloatingPointType(aSize[0])/vtkFloatingPointType(aSize[1]));
-    if(fabs(aScale - anOldScale)/aScale > aPrecision){
+    if(aScale != 0.0 && fabs(aScale - anOldScale)/aScale > aPrecision){
       SetScale(aScale);
     }
   }