From b9854f6087460d39425f3b9ae2a5962b61bd5ef1 Mon Sep 17 00:00:00 2001 From: mzn Date: Wed, 11 Mar 2009 15:02:58 +0000 Subject: [PATCH] Fix for bug 0020064: EDF 877 VISU : NaN in scalar bar. --- src/PIPELINE/VISU_ColoredPL.cxx | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.39.2