From 2bc74417150dd4301d4b864b6c95942384eb5daf Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 23 May 2014 16:26:00 +0200 Subject: [PATCH] cid#988429 Unintentional integer overflow Change-Id: Ia8d6b29e03317b0891c8357875261263c4f01c2d --- sc/source/core/data/table2.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sc/source/core/data/table2.cxx b/sc/source/core/data/table2.cxx index 900c29bf1ce0..b16aaa245d71 100644 --- a/sc/source/core/data/table2.cxx +++ b/sc/source/core/data/table2.cxx @@ -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; }