Fix for bug IPAL19909(Qt4 porting. Incorrect default value f(t) 1e+20 in Distribution with table density, Nb Segment Hypothesis Construction).

This commit is contained in:
mzn 2008-06-04 08:31:20 +00:00
parent 6c3c99ea8d
commit aff9fbd71a

View File

@ -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