summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2018-07-06 11:20:27 +0200
committerEike Rathke <erack@redhat.com>2018-07-06 11:22:38 +0200
commitc6b601603967b0ddc32755ee29049580696f1a3d (patch)
treefb62bf022be45ce7f4fbad39feaf1fd3e3cb0953 /sc
parent9a5b1d50806706328404060806bf3ee936b4baaf (diff)
GetNextPos: init end cols/rows with current pos, tdf#68290 follow-up
Using the added move value to obtain the print area could had placed them outside of the sheet already. Change-Id: I5fd97a7dd8ca92ab76cdfbb5c9a2b76ccc3f4c16
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/table1.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/data/table1.cxx b/sc/source/core/data/table1.cxx
index 8bfba4521de0..24e8d62a9b77 100644
--- a/sc/source/core/data/table1.cxx
+++ b/sc/source/core/data/table1.cxx
@@ -1406,8 +1406,8 @@ void ScTable::GetNextPos( SCCOL& rCol, SCROW& rRow, SCCOL nMovX, SCROW nMovY,
{
nStartCol = 0;
nStartRow = 0;
- nEndCol = nCol;
- nEndRow = nRow;
+ nEndCol = rCol;
+ nEndRow = rRow;
pDocument->GetPrintArea( nTab, nEndCol, nEndRow, true );
// Add some cols/rows to the print area (which is "content or
// visually different from empty") to enable travelling through