diff options
author | Daniel Rentz <dr@openoffice.org> | 2002-08-08 10:28:10 +0000 |
---|---|---|
committer | Daniel Rentz <dr@openoffice.org> | 2002-08-08 10:28:10 +0000 |
commit | 15929a98b98f0de8bc497d0e110b89e2ab48b578 (patch) | |
tree | 0471444f65e0edf9118382110120f8d6afdf1526 /scaddins | |
parent | 83b8c9dfa321b16056414b7e144a4f9b12fa882b (diff) |
#101616# conversion of metric areas and volumes
Diffstat (limited to 'scaddins')
-rw-r--r-- | scaddins/source/analysis/analysishelper.cxx | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/scaddins/source/analysis/analysishelper.cxx b/scaddins/source/analysis/analysishelper.cxx index cb31e555f456..88359acec8df 100644 --- a/scaddins/source/analysis/analysishelper.cxx +++ b/scaddins/source/analysis/analysishelper.cxx @@ -2,9 +2,9 @@ * * $RCSfile: analysishelper.cxx,v $ * - * $Revision: 1.36 $ + * $Revision: 1.37 $ * - * last change: $Author: dr $ $Date: 2002-07-09 13:03:17 $ + * last change: $Author: dr $ $Date: 2002-08-08 11:28:10 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -2832,6 +2832,17 @@ sal_Int16 ConvertData::GetMatchingLevel( const STRING& rRef ) const n = INV_MATCHLEV; } +//! <HACK> #100616# "cm3" is not 10^-2 m^3 but 10^-6 m^3 !!! ------------------ + if( n != INV_MATCHLEV ) + { + sal_Unicode cLast = p[ rRef.getLength() - 1 ]; + if( cLast == '2' ) + n *= 2; + else if( cLast == '3' ) + n *= 3; + } +//! </HACK> ------------------------------------------------------------------- + return n; } else |