summaryrefslogtreecommitdiff
path: root/scaddins/source/analysis/financial.cxx
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2006-12-19 12:13:05 +0000
committerIvo Hinkelmann <ihi@openoffice.org>2006-12-19 12:13:05 +0000
commitd0ed76a562a6a30e2031f8581f12cbb5baf21bab (patch)
tree0b1bc8bd9052fe33ec80a8ec18d78611cfa9b5e3 /scaddins/source/analysis/financial.cxx
parente466e9ee607ca7a5ed3cc6266e065986768e2f3e (diff)
INTEGRATION: CWS dr51 (1.18.22); FILE MERGED
2006/11/02 20:00:16 er 1.18.22.1: #i70041# add missing arguments support for most obvious functions of Xcl imported files while writing the correct default parameters to OOoXML's plain old formula
Diffstat (limited to 'scaddins/source/analysis/financial.cxx')
-rw-r--r--scaddins/source/analysis/financial.cxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/scaddins/source/analysis/financial.cxx b/scaddins/source/analysis/financial.cxx
index 211f94fe55a8..6d44f17e48fb 100644
--- a/scaddins/source/analysis/financial.cxx
+++ b/scaddins/source/analysis/financial.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: financial.cxx,v $
*
- * $Revision: 1.18 $
+ * $Revision: 1.19 $
*
- * last change: $Author: hr $ $Date: 2006-06-19 23:12:02 $
+ * last change: $Author: ihi $ $Date: 2006-12-19 13:13:05 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -64,9 +64,11 @@ double SAL_CALL AnalysisAddIn::getAmorlinc( constREFXPS& xOpt,
double SAL_CALL AnalysisAddIn::getAccrint( constREFXPS& xOpt,
- sal_Int32 nIssue, sal_Int32 /*nFirstInter*/, sal_Int32 nSettle, double fRate, double fVal, sal_Int32 nFreq,
- const ANY& rOB ) THROWDEF_RTE_IAE
+ sal_Int32 nIssue, sal_Int32 /*nFirstInter*/, sal_Int32 nSettle, double fRate,
+ const ANY &rVal, sal_Int32 nFreq, const ANY& rOB ) THROWDEF_RTE_IAE
{
+ double fVal = aAnyConv.getDouble( xOpt, rVal, 1000.0 );
+
if( fRate <= 0.0 || fVal <= 0.0 || CHK_Freq || nIssue >= nSettle )
THROW_IAE;