mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-05 22:30:33 +05:00
0020871: EDF 1411 SMESH: Distribution with analytical density crashes Salome
* avoid passing infinite value to qwt
This commit is contained in:
parent
d719b27fc2
commit
c985e18383
@ -50,6 +50,7 @@
|
|||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
# include <algorithm>
|
# include <algorithm>
|
||||||
#endif
|
#endif
|
||||||
|
#include <math.h>
|
||||||
|
|
||||||
#include <Basics_Utils.hxx>
|
#include <Basics_Utils.hxx>
|
||||||
|
|
||||||
@ -262,6 +263,10 @@ void StdMeshersGUI_DistrPreview::update()
|
|||||||
showError();
|
showError();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if ( isinf(y[i]))
|
||||||
|
y[i] = std::numeric_limits<double>::max()/100.;
|
||||||
|
// if ( y[i] > 1e3 )
|
||||||
|
// y[i] = 1e3;
|
||||||
if( i==0 || y[i]<min_y )
|
if( i==0 || y[i]<min_y )
|
||||||
min_y = y[i];
|
min_y = y[i];
|
||||||
if( i==0 || y[i]>max_y )
|
if( i==0 || y[i]>max_y )
|
||||||
|
Loading…
Reference in New Issue
Block a user