coverity#1202783 Division or modulo by zero

Change-Id: I17892b9daa3be450001ac88239008d0d27f4a01f
This commit is contained in:
Caolán McNamara 2014-08-07 15:38:00 +01:00
parent 9823f73137
commit 086611d2ce

View file

@ -1819,7 +1819,7 @@ void ValueSet::SelectItem( sal_uInt16 nItemId )
bool bNewLine = false;
// if necessary scroll to the visible area
if ( mbScroll && nItemId )
if (mbScroll && nItemId && mnCols)
{
sal_uInt16 nNewLine = (sal_uInt16)(nItemPos / mnCols);
if ( nNewLine < mnFirstLine )