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

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