scaddins/source/analysis/financial.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 897049ef655d09f477c4c766221a5b1b42087d63
Author: Winfried Donkers <winfrieddonk...@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 <er...@redhat.com>
    Tested-by: Eike Rathke <er...@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,
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to