]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix for bug 0020064: EDF 877 VISU : NaN in scalar bar.
authormzn <mzn@opencascade.com>
Wed, 11 Mar 2009 15:02:58 +0000 (15:02 +0000)
committermzn <mzn@opencascade.com>
Wed, 11 Mar 2009 15:02:58 +0000 (15:02 +0000)
src/PIPELINE/VISU_ColoredPL.cxx

index 2dafb037b8dc4d1fdb8de2550d1a180925862f07..d1b88f139cec4be3b4553fbf646f22bba3e924b7 100644 (file)
@@ -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