coverity#1202783 Division or modulo by zero
Change-Id: I17892b9daa3be450001ac88239008d0d27f4a01f
This commit is contained in:
parent
9823f73137
commit
086611d2ce
1 changed files with 1 additions and 1 deletions
|
@ -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 )
|
||||
|
|
Loading…
Reference in a new issue