diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-07-18 14:13:24 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-07-18 15:36:17 +0100 |
commit | ebdb4a00fa3daaae49b0e20a122284056cc5b846 (patch) | |
tree | 6eb3c230ff5f3acd2328b341a5468c279275a595 /svtools/source | |
parent | fb10049037a0c5936d6aa78df0b53e77a45cdd6e (diff) |
coverity#1202783 Division or modulo by zero
Change-Id: Ida169195697d3976500a16e3cced40b25664a02e
Diffstat (limited to 'svtools/source')
-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 87a868bddf56..d1a0409169e8 100644 --- a/svtools/source/control/valueset.cxx +++ b/svtools/source/control/valueset.cxx @@ -1381,7 +1381,7 @@ void ValueSet::KeyInput( const KeyEvent& rKeyEvent ) { // update current column only in case of a new position // which is also not a "specially" handled one. - mnCurCol = nItemPos % mnCols; + mnCurCol = mnCols ? nItemPos % mnCols : 0; } const sal_uInt16 nItemId = (nItemPos != VALUESET_ITEM_NONEITEM) ? GetItemId( nItemPos ) : 0; if ( nItemId != mnSelItemId ) |