diff options
Diffstat (limited to 'sc/source/ui/unoobj/cursuno.cxx')
-rw-r--r-- | sc/source/ui/unoobj/cursuno.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/unoobj/cursuno.cxx b/sc/source/ui/unoobj/cursuno.cxx index 82cbe769fb34..6f18ed237c76 100644 --- a/sc/source/ui/unoobj/cursuno.cxx +++ b/sc/source/ui/unoobj/cursuno.cxx @@ -338,7 +338,7 @@ void SAL_CALL ScCellCursorObj::gotoNext() aOneRange.PutInOrder(); ScAddress aCursor(aOneRange.aStart); // always use start of block - ScMarkData aMark; // not used with bMarked=FALSE + ScMarkData aMark(GetDocument()->MaxRow(), GetDocument()->MaxCol()); // not used with bMarked=FALSE SCCOL nNewX = aCursor.Col(); SCROW nNewY = aCursor.Row(); SCTAB nTab = aCursor.Tab(); @@ -360,7 +360,7 @@ void SAL_CALL ScCellCursorObj::gotoPrevious() aOneRange.PutInOrder(); ScAddress aCursor(aOneRange.aStart); // always use start of block - ScMarkData aMark; // not used with bMarked=FALSE + ScMarkData aMark(GetDocument()->MaxRow(), GetDocument()->MaxCol()); // not used with bMarked=FALSE SCCOL nNewX = aCursor.Col(); SCROW nNewY = aCursor.Row(); SCTAB nTab = aCursor.Tab(); |