sw/source/core/crsr/trvlfnfl.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
New commits: commit 5740d3fa83e9725a2771e5f00ba4aaf9965f0be2 Author: Jim Raykowski <rayk...@gmail.com> AuthorDate: Fri Apr 19 21:05:24 2024 -0800 Commit: Jim Raykowski <rayk...@gmail.com> CommitDate: Mon Apr 22 20:51:58 2024 +0200 Resolves tdf#160731 Navigate by recency does not work under gtk3 + wayland I think the lines of code removed by this patch were meant to allow recency to remember the cursor position before being moved to a start/ end/previous/next word or sentence position by an UNO dispatch command. These are already taken care of in the slot execute function void SwTextShell::ExecMoveLingu. Change-Id: I8bf231ea4cbb03125f54332a41c5544f9094b768 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166350 Tested-by: Jenkins Reviewed-by: Jim Raykowski <rayk...@gmail.com> diff --git a/sw/source/core/crsr/trvlfnfl.cxx b/sw/source/core/crsr/trvlfnfl.cxx index 8cdf807acc55..098bad4b3435 100644 --- a/sw/source/core/crsr/trvlfnfl.cxx +++ b/sw/source/core/crsr/trvlfnfl.cxx @@ -34,9 +34,6 @@ bool SwCursorShell::CallCursorShellFN( FNCursorShell fnCursor ) { - if (SwWrtShell* pWrtSh = dynamic_cast<SwWrtShell*>(this)) - pWrtSh->addCurrentPosition(); - SwCallLink aLk( *this ); // watch Cursor-Moves bool bRet = (this->*fnCursor)(); if( bRet ) @@ -47,6 +44,7 @@ bool SwCursorShell::CallCursorShellFN( FNCursorShell fnCursor ) bool SwCursorShell::CallCursorFN( FNCursor fnCursor ) { + // for footnote anchor<->text recency if (SwWrtShell* pWrtSh = dynamic_cast<SwWrtShell*>(this)) pWrtSh->addCurrentPosition();