From: mzn Date: Wed, 11 Mar 2009 15:01:09 +0000 (+0000) Subject: Fix for bug 0020064: EDF 877 VISU : NaN in scalar bar. X-Git-Tag: V4_1_0_maintainance_20090313~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a4f34c769f1dd5a6025517f7868b7f93332605b4;p=modules%2Fvisu.git Fix for bug 0020064: EDF 877 VISU : NaN in scalar bar. --- diff --git a/src/PIPELINE/VISU_ColoredPL.cxx b/src/PIPELINE/VISU_ColoredPL.cxx index 5139b7ca..79ec127c 100644 --- a/src/PIPELINE/VISU_ColoredPL.cxx +++ b/src/PIPELINE/VISU_ColoredPL.cxx @@ -342,6 +342,9 @@ VISU_ColoredPL { myExtractor->Update(); myExtractor->GetOutput()->GetScalarRange(theRange); + + if (isnan(theRange[0]) || isnan(theRange[1])) + throw std::runtime_error("Arithmetic exception detected"); } void