From: mzn Date: Wed, 4 Jun 2008 08:31:20 +0000 (+0000) Subject: Fix for bug IPAL19909(Qt4 porting. Incorrect default value f(t) 1e+20 in Distribution... X-Git-Tag: V5_1_0a1~46 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=aff9fbd71aebe0f3a2ba9e3b3fa1703ee07dd859;p=modules%2Fsmesh.git Fix for bug IPAL19909(Qt4 porting. Incorrect default value f(t) 1e+20 in Distribution with table density, Nb Segment Hypothesis Construction). --- diff --git a/src/StdMeshersGUI/StdMeshersGUI_DistrTable.cxx b/src/StdMeshersGUI/StdMeshersGUI_DistrTable.cxx index 4b5398bde..231d9e24c 100644 --- a/src/StdMeshersGUI/StdMeshersGUI_DistrTable.cxx +++ b/src/StdMeshersGUI/StdMeshersGUI_DistrTable.cxx @@ -304,7 +304,7 @@ setValue( int r, int c, double v ) if ( c == FuncColumn && v < funcMinimum( r ) ) v = funcMinimum( r ); // correct func value according to the valid min value - if ( c == FuncColumn && v < funcMaximum( r ) ) + if ( c == FuncColumn && v > funcMaximum( r ) ) v = funcMaximum( r ); // correct func value according to the valid max value else if ( r == ArgColumn && v < argMinimum( r ) ) v = argMinimum( r ); // correct arg value according to the valid min value