diff options
author | Rüdiger Timm <rt@openoffice.org> | 2007-07-03 14:39:28 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2007-07-03 14:39:28 +0000 |
commit | ade6c6bb227549de3be8fc35bc06540907e572ee (patch) | |
tree | 0e335353d3c23b9f9b9337201bc75ac25c29c208 /scaddins | |
parent | 54f97cd2ab2eb1aafd480d8d5744ef9729e28bae (diff) |
INTEGRATION: CWS dr54 (1.53.30); FILE MERGED
2007/06/11 11:09:54 dr 1.53.30.2: RESYNC: (1.53-1.54); FILE MERGED
2007/05/03 09:17:22 dr 1.53.30.1: #i74282# conversion to negative values
Diffstat (limited to 'scaddins')
-rw-r--r-- | scaddins/source/analysis/analysishelper.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scaddins/source/analysis/analysishelper.cxx b/scaddins/source/analysis/analysishelper.cxx index f07761aac8e9..d90243843b5c 100644 --- a/scaddins/source/analysis/analysishelper.cxx +++ b/scaddins/source/analysis/analysishelper.cxx @@ -4,9 +4,9 @@ * * $RCSfile: analysishelper.cxx,v $ * - * $Revision: 1.54 $ + * $Revision: 1.55 $ * - * last change: $Author: rt $ $Date: 2007-04-26 08:10:20 $ + * last change: $Author: rt $ $Date: 2007-07-03 15:39:28 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -780,7 +780,7 @@ double ConvertToDec( const STRING& aStr, sal_uInt16 nBase, sal_uInt16 nCharLim ) } - if( nStrLen == nCharLim && !bFirstDig && nFirstDig == nBase - 1 ) + if( nStrLen == nCharLim && !bFirstDig && (nFirstDig >= nBase / 2) ) { // handling negativ values fVal = ( pow( double( nBase ), double( nCharLim ) ) - fVal ); // complement fVal *= -1.0; |