cid#988429 Unintentional integer overflow

Change-Id: Ia8d6b29e03317b0891c8357875261263c4f01c2d
This commit is contained in:
Noel Grandin
2014-05-23 16:26:00 +02:00
parent 552ac76dd4
commit 2bc7441715

View File

@@ -2997,7 +2997,7 @@ sal_uLong ScTable::GetRowHeight( SCROW nStartRow, SCROW nEndRow, bool bHiddenAsZ
return nHeight;
}
else
return (sal_uLong) ((nEndRow - nStartRow + 1) * ScGlobal::nStdRowHeight);
return (nEndRow - nStartRow + 1) * (sal_uLong)ScGlobal::nStdRowHeight;
}