diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-04-02 09:27:46 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-04-02 12:08:14 +0200 |
commit | 0ec042dd2488989e7a9c45309b408ec8b8326208 (patch) | |
tree | 1d1d6d4b92698725900e8763f9f13152cebf2857 /sc | |
parent | bedce5f2b383c38b8fe051e4e63b76e116c5ffb4 (diff) |
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@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/miscdlgs/filldlg.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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 |