[Libreoffice-commits] core.git: scaddins/source
Winfried Donkers
winfrieddonkers at libreoffice.org
Tue Jul 12 12:16:43 UTC 2016
scaddins/source/analysis/financial.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 897049ef655d09f477c4c766221a5b1b42087d63
Author: Winfried Donkers <winfrieddonkers at libreoffice.org>
Date: Thu Jul 7 12:13:30 2016 +0200
tdf#100729 ODDLYIELD : apply constraints in compliance with ODFF1.2
(and Excel).
Change-Id: I1cc40494fb2451a06864f770af7c33d26013dcaa
Reviewed-on: https://gerrit.libreoffice.org/27002
Reviewed-by: Eike Rathke <erack at redhat.com>
Tested-by: Eike Rathke <erack at redhat.com>
diff --git a/scaddins/source/analysis/financial.cxx b/scaddins/source/analysis/financial.cxx
index 052f8b5..a5f38d1 100644
--- a/scaddins/source/analysis/financial.cxx
+++ b/scaddins/source/analysis/financial.cxx
@@ -452,7 +452,7 @@ double SAL_CALL AnalysisAddIn::getOddlyield( const css::uno::Reference< css::bea
sal_Int32 nSettle, sal_Int32 nMat, sal_Int32 nLastInterest,
double fRate, double fPrice, double fRedemp, sal_Int32 nFreq, const css::uno::Any& rOB ) throw( css::uno::RuntimeException, css::lang::IllegalArgumentException, std::exception )
{
- if( fRate < 0.0 || fPrice <= 0.0 || CHK_Freq || nMat <= nSettle || nSettle <= nLastInterest )
+ if( fRate <= 0.0 || fPrice <= 0.0 || fRedemp <= 0.0 || CHK_Freq || nMat <= nSettle || nSettle <= nLastInterest )
throw css::lang::IllegalArgumentException();
double fRet = GetOddlyield( GetNullDate( xOpt ), nSettle, nMat, nLastInterest, fRate, fPrice, fRedemp, nFreq,
More information about the Libreoffice-commits
mailing list