From 4b49d04d08922851ec0964079d550c73d8a8a09d Mon Sep 17 00:00:00 2001 From: enk Date: Tue, 7 Mar 2006 12:11:17 +0000 Subject: [PATCH] Fixed Bug IPAL11054: Application crashes if you set "-8" as f(t) in "Exponent" mode in "Hypothesis Construction" --- src/StdMeshersGUI/StdMeshersGUI_DistrPreview.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/StdMeshersGUI/StdMeshersGUI_DistrPreview.cxx b/src/StdMeshersGUI/StdMeshersGUI_DistrPreview.cxx index e3ebcd75f..e58be313b 100644 --- a/src/StdMeshersGUI/StdMeshersGUI_DistrPreview.cxx +++ b/src/StdMeshersGUI/StdMeshersGUI_DistrPreview.cxx @@ -334,6 +334,10 @@ bool StdMeshersGUI_DistrPreview::convert( double& v ) const { CASCatch_TRY { + // in StdMeshers_NumberOfSegments.cc + // const double PRECISION = 1e-7; + // + if(v < -7) v = -7.0; v = pow( 10.0, v ); } CASCatch_CATCH(Standard_Failure) -- 2.39.2