From c985e18383422aad3d67d0b7a0fb1fbe3c36ae3a Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 12 May 2010 08:05:52 +0000 Subject: [PATCH] 0020871: EDF 1411 SMESH: Distribution with analytical density crashes Salome * avoid passing infinite value to qwt --- src/StdMeshersGUI/StdMeshersGUI_DistrPreview.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/StdMeshersGUI/StdMeshersGUI_DistrPreview.cxx b/src/StdMeshersGUI/StdMeshersGUI_DistrPreview.cxx index b3b101afb..1c3a179a9 100644 --- a/src/StdMeshersGUI/StdMeshersGUI_DistrPreview.cxx +++ b/src/StdMeshersGUI/StdMeshersGUI_DistrPreview.cxx @@ -50,6 +50,7 @@ #ifdef WIN32 # include #endif +#include #include @@ -262,6 +263,10 @@ void StdMeshersGUI_DistrPreview::update() showError(); return; } + if ( isinf(y[i])) + y[i] = std::numeric_limits::max()/100.; +// if ( y[i] > 1e3 ) +// y[i] = 1e3; if( i==0 || y[i]max_y ) -- 2.39.2