From cfcf0254afe0ce9f4fd80606527bd1f14777f7e1 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 19 Oct 2015 15:11:59 +0100 Subject: afl-eventtesting: div by zero Change-Id: If070da723858b5e1221bda86e69225ee57ec9d02 --- svtools/source/control/valueset.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'svtools/source/control/valueset.cxx') 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 -- cgit