From a4f34c769f1dd5a6025517f7868b7f93332605b4 Mon Sep 17 00:00:00 2001 From: mzn Date: Wed, 11 Mar 2009 15:01:09 +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 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 -- 2.39.2