]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix for bug IPAL19512: Qt4 porting: Error message is shown after selection of Gauss...
authormkr <mkr@opencascade.com>
Mon, 28 Apr 2008 08:44:52 +0000 (08:44 +0000)
committermkr <mkr@opencascade.com>
Mon, 28 Apr 2008 08:44:52 +0000 (08:44 +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);
     }
   }