Fix comparison

Change-Id: Id2db7abdec7373082f85fb9d8479427d09cc0a12
This commit is contained in:
Julien Nabet 2012-09-15 13:16:50 +02:00
parent f5beefb2ea
commit fb98459e66

View file

@ -270,7 +270,7 @@ sal_Int16 SAL_CALL checkPrecisionSize()
volatile T nValue = nCalcValue + static_cast<T>(0.1);
volatile T dSub = nValue - nCalcValue;
// ----- 0.11 ---- 0.1 ---- 0.09 -----
if (0.11 > dSub && dSub < 0.09)
if (0.11 > dSub && dSub > 0.09)
{
// due to the fact, that the value is break down we sub 1 from the precision value
// but to suppress this, we start at zero, precision is i+1 till here --i;