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 )