From: mzn Date: Thu, 12 Mar 2009 12:54:20 +0000 (+0000) Subject: Fix for bug 0020064: EDF 877 VISU : NaN in scalar bar. X-Git-Tag: V5_1_1rc2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=42df2c65e1b74948c1625bacf8703ee40c91470d;p=modules%2Fvisu.git Fix for bug 0020064: EDF 877 VISU : NaN in scalar bar. --- diff --git a/src/PIPELINE/VISU_DeformedShapeAndScalarMapPL.cxx b/src/PIPELINE/VISU_DeformedShapeAndScalarMapPL.cxx index 001eb962..ddf02041 100644 --- a/src/PIPELINE/VISU_DeformedShapeAndScalarMapPL.cxx +++ b/src/PIPELINE/VISU_DeformedShapeAndScalarMapPL.cxx @@ -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"); }