Salome HOME
projects
/
modules
/
visu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7876b59
)
Fix for bug 0020064: EDF 877 VISU : NaN in scalar bar.
author
mzn
<mzn@opencascade.com>
Wed, 11 Mar 2009 15:02:58 +0000
(15:02 +0000)
committer
mzn
<mzn@opencascade.com>
Wed, 11 Mar 2009 15:02:58 +0000
(15:02 +0000)
src/PIPELINE/VISU_ColoredPL.cxx
patch
|
blob
|
history
diff --git
a/src/PIPELINE/VISU_ColoredPL.cxx
b/src/PIPELINE/VISU_ColoredPL.cxx
index 2dafb037b8dc4d1fdb8de2550d1a180925862f07..d1b88f139cec4be3b4553fbf646f22bba3e924b7 100644
(file)
--- 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