From: mzn Date: Wed, 11 Mar 2009 15:02:58 +0000 (+0000) Subject: Fix for bug 0020064: EDF 877 VISU : NaN in scalar bar. X-Git-Tag: V5_1_1rc2~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b9854f6087460d39425f3b9ae2a5962b61bd5ef1;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 2dafb037..d1b88f13 100644 --- a/src/PIPELINE/VISU_ColoredPL.cxx +++ b/src/PIPELINE/VISU_ColoredPL.cxx @@ -496,6 +496,9 @@ VISU_ColoredPL { myExtractor->Update(); myExtractor->GetOutput()->GetScalarRange( theRange ); + + if (isnan(theRange[0]) || isnan(theRange[1])) + throw std::runtime_error("Arithmetic exception detected"); } void