tdf#50846 - Wrong type of function GetLastUsedRow

Changed the type of the function GetLastUsedRow from int to long
in order to avoid overflows.

Change-Id: Ia0d789611f732eecdfdbe557b751dbead5748c45
Reviewed-on: https://gerrit.libreoffice.org/79586
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
This commit is contained in:
Andreas Heinisch
2019-09-26 08:39:19 +02:00
committed by Mike Kaganski
parent 5e1b57b8e6
commit 7c694158ff
2 changed files with 6 additions and 6 deletions

View File

@@ -172,17 +172,17 @@ Sub UpdateValue(ByVal sName As String, fDate As Double, fValue As Double )
Dim oSheet As Object Dim oSheet As Object
Dim iColumn As Long Dim iColumn As Long
Dim iRow As Long Dim iRow As Long
Dim i as Integer Dim i as Long
Dim oCell As Object Dim oCell As Object
Dim LastDate as Date Dim LastDate as Date
Dim bLeaveLoop as Boolean Dim bLeaveLoop as Boolean
Dim RemoveCount as Integer Dim RemoveCount as Long
Dim iLastRow as Integer Dim iLastRow as Long
Dim iLastLinkRow as Integer Dim iLastLinkRow as Long
Dim dDate as Date Dim dDate as Date
Dim CurDate as Date Dim CurDate as Date
Dim oLinkSheet as Object Dim oLinkSheet as Object
Dim StartIndex as Integer Dim StartIndex as Long
Dim iCellValue as Long Dim iCellValue as Long
&apos; Insert Sheet with Company - Chart &apos; Insert Sheet with Company - Chart
sName = CheckNewSheetname(oSheets, sName) sName = CheckNewSheetname(oSheets, sName)

View File

@@ -642,7 +642,7 @@ Dim i as Integer
End Function End Function
Function GetLastUsedRow(oSheet as Object) as Integer Function GetLastUsedRow(oSheet as Object) as Long
Dim oCell As Object Dim oCell As Object
Dim oCursor As Object Dim oCursor As Object
Dim aAddress As Variant Dim aAddress As Variant