[Libreoffice-commits] core.git: sc/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Thu Apr 2 10:08:59 UTC 2020


 sc/source/ui/miscdlgs/filldlg.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 0ec042dd2488989e7a9c45309b408ec8b8326208
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Apr 2 09:27:46 2020 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Thu Apr 2 12:08:14 2020 +0200

    cid#1460967 Division or modulo by float zero
    
    Change-Id: I2322ac1abec040d14fbffaf495c83cf3303fee92
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91547
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sc/source/ui/miscdlgs/filldlg.cxx b/sc/source/ui/miscdlgs/filldlg.cxx
index 6fb1934c0929..f47ee81942c7 100644
--- a/sc/source/ui/miscdlgs/filldlg.cxx
+++ b/sc/source/ui/miscdlgs/filldlg.cxx
@@ -205,7 +205,7 @@ weld::Entry* ScFillSeriesDlg::CheckValues()
                     m_nSelectHeight - 1 : m_nSelectWidth - 1 ;
         if ( aStartStr.isEmpty() )
             fStartVal = fEndVal - fIncrement * nStepAmount;
-        if ( aIncStr.isEmpty() )
+        if ( aIncStr.isEmpty() && nStepAmount != 0 )
             fIncrement = (fEndVal - fStartVal) / nStepAmount;
     }
     else


More information about the Libreoffice-commits mailing list