]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix for bug 0020064: EDF 877 VISU : NaN in scalar bar. V5_1_1rc2
authormzn <mzn@opencascade.com>
Thu, 12 Mar 2009 12:54:20 +0000 (12:54 +0000)
committermzn <mzn@opencascade.com>
Thu, 12 Mar 2009 12:54:20 +0000 (12:54 +0000)
src/PIPELINE/VISU_DeformedShapeAndScalarMapPL.cxx

index 001eb96202583888c5209ac67b28c531aa8fad77..ddf02041988f1ff3c9fb14565fc0f30138753b0a 100644 (file)
@@ -460,4 +460,7 @@ VISU_DeformedShapeAndScalarMapPL
 {
   myScalarsExtractor->Update();
   myScalarsExtractor->GetUnstructuredGridOutput()->GetScalarRange(theRange);
+
+  if (isnan(theRange[0]) || isnan(theRange[1]))
+    throw std::runtime_error("Arithmetic exception detected");
 }