Kaydet (Commit) bbe3053d authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1399019 Division or modulo by zero

Change-Id: I0f21612effa91a6c9e7e0a48c46dde88c4b34b94
üst d420d9af
......@@ -621,6 +621,9 @@ void ScDrawStringsVars::SetTextToWidthOrHash( ScRefCellValue& rCell, long nWidth
return;
long nMaxDigit = GetMaxDigitWidth();
if (!nMaxDigit)
return;
sal_uInt16 nNumDigits = static_cast<sal_uInt16>(nWidth / nMaxDigit);
{
OUString sTempOut(aString);
......
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