diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-10-19 15:11:59 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-10-19 15:42:51 +0100 |
commit | cfcf0254afe0ce9f4fd80606527bd1f14777f7e1 (patch) | |
tree | e4f2d69e87e262b80438ff9caa7766516ed31e82 /svtools | |
parent | cbe2b9cb69a685ab89384f98a9e62b2623afcd9b (diff) |
afl-eventtesting: div by zero
Change-Id: If070da723858b5e1221bda86e69225ee57ec9d02
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/control/valueset.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svtools/source/control/valueset.cxx b/svtools/source/control/valueset.cxx index c88042d13984..5f780ca34592 100644 --- a/svtools/source/control/valueset.cxx +++ b/svtools/source/control/valueset.cxx @@ -1326,7 +1326,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 |