diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2008-09-30 13:51:36 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2008-09-30 13:51:36 +0000 |
commit | ff916ccce1527b63aad17bbae0ad02a834cd31d6 (patch) | |
tree | 23096c4a5873e0545c6134ec4ee8668605a18b6b /scaddins | |
parent | 0ff7779e8c64cbe9c60ecc8030b145817c0af9ea (diff) |
CWS-TOOLING: integrate CWS dr63
Diffstat (limited to 'scaddins')
-rw-r--r-- | scaddins/source/analysis/analysis.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scaddins/source/analysis/analysis.cxx b/scaddins/source/analysis/analysis.cxx index 57afc69bcbee..5f9e60d9b428 100644 --- a/scaddins/source/analysis/analysis.cxx +++ b/scaddins/source/analysis/analysis.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: analysis.cxx,v $ - * $Revision: 1.46 $ + * $Revision: 1.46.20.1 $ * * This file is part of OpenOffice.org. * @@ -687,7 +687,7 @@ sal_Int32 SAL_CALL AnalysisAddIn::getEomonth( constREFXPS& xOpt, sal_Int32 nDate else if( nNewMonth < 1 ) { nNewMonth = -nNewMonth; - nYear = sal::static_int_cast<sal_uInt16>( nYear + ( nNewMonth / 12 ) ); + nYear = sal::static_int_cast<sal_uInt16>( nYear - ( nNewMonth / 12 ) ); nYear--; nNewMonth %= 12; nNewMonth = 12 - nNewMonth; |