Kaydet (Commit) fd1b1a15 authored tarafından Laurent Godard's avatar Laurent Godard Kaydeden (comit) Eike Rathke

calc ScTable::ReplaceAll : avoid calling GetLastDataPos uselessly

Change-Id: Ibb6fb9ea3e524a889de96f560e308a4aa54fa2af
Reviewed-on: https://gerrit.libreoffice.org/12248Reviewed-by: 's avatarEike Rathke <erack@redhat.com>
Tested-by: 's avatarEike Rathke <erack@redhat.com>
üst 99df39b5
...@@ -496,10 +496,14 @@ bool ScTable::ReplaceAll( ...@@ -496,10 +496,14 @@ bool ScTable::ReplaceAll(
SCCOL nCol = 0; SCCOL nCol = 0;
SCROW nRow = -1; SCROW nRow = -1;
SCCOL nLastCol;
SCROW nLastRow;
GetLastDataPos(nLastCol, nLastRow);
bool bEverFound = false; bool bEverFound = false;
while (true) while (true)
{ {
bool bFound = Search(rSearchItem, nCol, nRow, rMark, rUndoStr, pUndoDoc); bool bFound = Search(rSearchItem, nCol, nRow, nLastCol, nLastRow, rMark, rUndoStr, pUndoDoc);
if (bFound) if (bFound)
{ {
......
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