summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-10-19 15:11:59 +0100
committerEike Rathke <erack@redhat.com>2015-10-19 18:20:16 +0000
commitffa53e3ce8c985c668919eb67a1f7b5acb40aa78 (patch)
tree21ea95f2418721fbdbcdc71b46ba9f62f96bdb1e /svtools
parent253b3f72fc63e06c5ef5c46a2300914a1d911955 (diff)
afl-eventtesting: div by zero
Change-Id: If070da723858b5e1221bda86e69225ee57ec9d02 (cherry picked from commit cfcf0254afe0ce9f4fd80606527bd1f14777f7e1) Reviewed-on: https://gerrit.libreoffice.org/19467 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/control/valueset.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svtools/source/control/valueset.cxx b/svtools/source/control/valueset.cxx
index 106799670bc2..4af4a38b83cc 100644
--- a/svtools/source/control/valueset.cxx
+++ b/svtools/source/control/valueset.cxx
@@ -1327,7 +1327,7 @@ void ValueSet::KeyInput( const KeyEvent& rKeyEvent )
{
if (nCurPos == nLastItem)
{
- const size_t nCol = nLastItem % mnCols;
+ const size_t nCol = mnCols ? nLastItem % mnCols : 0;
if (nCol < mnCurCol)
{
// Move to previous row/page, keeping the old column