From: eap Date: Wed, 12 May 2010 08:05:52 +0000 (+0000) Subject: 0020871: EDF 1411 SMESH: Distribution with analytical density crashes Salome X-Git-Tag: V5_1_4~23 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c985e18383422aad3d67d0b7a0fb1fbe3c36ae3a;p=modules%2Fsmesh.git 0020871: EDF 1411 SMESH: Distribution with analytical density crashes Salome * avoid passing infinite value to qwt --- 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 )