Kaydet (Commit) 3dcbcd12 authored tarafından David Tardon's avatar David Tardon

coverity#735654 avoid division by 0

Change-Id: If368d300c5ed880e1359cbc67df0e13b00fc6ecf
üst 709ae235
......@@ -1114,7 +1114,7 @@ void ComboBox::GetMaxVisColumnsAndLines( sal_uInt16& rnCols, sal_uInt16& rnLines
else
{
Size aOutSz = mpSubEdit->GetOutputSizePixel();
rnCols = (sal_uInt16)(aOutSz.Width()/nCharWidth);
rnCols = (nCharWidth > 0) ? (sal_uInt16)(aOutSz.Width()/nCharWidth) : 1;
rnLines = 1;
}
}
......
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