From 5d774434743fbc40a5d19daadc9d5b73d2552c41 Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Wed, 4 Jul 2018 11:34:02 +0200 Subject: Resolves: tdf#117458 let Enter move left/right again, tdf#68290 follow-up Regression from commit b0a391d62c1df7525069a02913a52af940d92ecc CommitDate: Tue Jan 30 23:12:04 2018 +0100 Circular movement of cursor in a table with hidden columns/rows, tdf#68290 related where for nMoveX case nNewX - nCurX and nNewY - nCurY were both 0. Also don't abuse the bMarked flag for GetNextPos() as bUnprotected if nothing is marked, in which case also bKeepSel doesn't make sense. Change-Id: I59af09f1cfa397e68ce16d151ba7eee6e6598a75 Reviewed-on: https://gerrit.libreoffice.org/56935 Reviewed-by: Eike Rathke Tested-by: Jenkins --- sc/inc/table.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sc/inc/table.hxx') diff --git a/sc/inc/table.hxx b/sc/inc/table.hxx index 2065ce2b130f..97f1f44fc08f 100644 --- a/sc/inc/table.hxx +++ b/sc/inc/table.hxx @@ -589,7 +589,7 @@ public: bool bMarked, bool bUnprotected, const ScMarkData& rMark ) const; bool SkipRow( const SCCOL rCol, SCROW& rRow, const SCROW nMovY, const ScMarkData& rMark, - const bool bUp, const SCROW nUsedY, const bool bSheetProtected ) const; + const bool bUp, const SCROW nUsedY, const bool bMarked, const bool bSheetProtected ) const; void LimitChartArea( SCCOL& rStartCol, SCROW& rStartRow, SCCOL& rEndCol, SCROW& rEndRow ) const; bool HasData( SCCOL nCol, SCROW nRow ) const; -- cgit