X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FStdMeshersGUI%2FStdMeshersGUI_DistrPreview.cxx;h=fb493741754333b6b4b9ecb9d0daa7a51014236f;hb=6ea1e8f3201064633151e5602282e8fef38582fd;hp=b3b101afb23997cb9de410761ec028a2092e4bd7;hpb=452d18f67047ebbac6f3ba17f906d07327c8cdd0;p=modules%2Fsmesh.git diff --git a/src/StdMeshersGUI/StdMeshersGUI_DistrPreview.cxx b/src/StdMeshersGUI/StdMeshersGUI_DistrPreview.cxx index b3b101afb..fb4937417 100644 --- a/src/StdMeshersGUI/StdMeshersGUI_DistrPreview.cxx +++ b/src/StdMeshersGUI/StdMeshersGUI_DistrPreview.cxx @@ -50,6 +50,8 @@ #ifdef WIN32 # include #endif +#include +#include #include @@ -262,6 +264,15 @@ void StdMeshersGUI_DistrPreview::update() showError(); return; } +#ifdef WIN32 + if ( std::fabs(y[i]) >= HUGE_VAL) + y[i] = HUGE_VAL/100.; +#else + if ( isinf(y[i])) + y[i] = std::numeric_limits::max()/100.; +#endif +// if ( y[i] > 1e3 ) +// y[i] = 1e3; if( i==0 || y[i]max_y )