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
Additional patch for Windows from Erwan ADAM
This commit is contained in:
parent
fd47c39529
commit
7d30d8ec9f
@ -264,8 +264,13 @@ void StdMeshersGUI_DistrPreview::update()
|
|||||||
showError();
|
showError();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
#ifdef WIN32
|
||||||
|
if ( std::fabs(y[i]) >= HUGE_VAL)
|
||||||
|
y[i] = HUGE_VAL/100.;
|
||||||
|
#else
|
||||||
if ( isinf(y[i]))
|
if ( isinf(y[i]))
|
||||||
y[i] = std::numeric_limits<double>::max()/100.;
|
y[i] = std::numeric_limits<double>::max()/100.;
|
||||||
|
#endif
|
||||||
// if ( y[i] > 1e3 )
|
// if ( y[i] > 1e3 )
|
||||||
// y[i] = 1e3;
|
// y[i] = 1e3;
|
||||||
if( i==0 || y[i]<min_y )
|
if( i==0 || y[i]<min_y )
|
||||||
|
Loading…
Reference in New Issue
Block a user