From: mzn Date: Thu, 12 Mar 2009 12:55:27 +0000 (+0000) Subject: Fix for bug 0020064: EDF 877 VISU : NaN in scalar bar. X-Git-Tag: V4_1_0_maintainance_20090313 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=bb6cae2ae840b079b1a19f91afa9b465c2294ba8;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 d52de6e4..732f522c 100644 --- a/src/PIPELINE/VISU_DeformedShapeAndScalarMapPL.cxx +++ b/src/PIPELINE/VISU_DeformedShapeAndScalarMapPL.cxx @@ -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"); }