Kaydet (Commit) ffa53e3c authored tarafından Caolán McNamara's avatar Caolán McNamara Kaydeden (comit) Eike Rathke

afl-eventtesting: div by zero

Change-Id: If070da723858b5e1221bda86e69225ee57ec9d02
(cherry picked from commit cfcf0254)
Reviewed-on: https://gerrit.libreoffice.org/19467Reviewed-by: 's avatarEike Rathke <erack@redhat.com>
Tested-by: 's avatarEike Rathke <erack@redhat.com>
üst 253b3f72
...@@ -1327,7 +1327,7 @@ void ValueSet::KeyInput( const KeyEvent& rKeyEvent ) ...@@ -1327,7 +1327,7 @@ void ValueSet::KeyInput( const KeyEvent& rKeyEvent )
{ {
if (nCurPos == nLastItem) if (nCurPos == nLastItem)
{ {
const size_t nCol = nLastItem % mnCols; const size_t nCol = mnCols ? nLastItem % mnCols : 0;
if (nCol < mnCurCol) if (nCol < mnCurCol)
{ {
// Move to previous row/page, keeping the old column // Move to previous row/page, keeping the old column
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment