diff options
author | Jim Raykowski <raykowj@gmail.com> | 2024-04-19 21:05:24 -0800 |
---|---|---|
committer | Jim Raykowski <raykowj@gmail.com> | 2024-04-22 20:51:58 +0200 |
commit | 5740d3fa83e9725a2771e5f00ba4aaf9965f0be2 (patch) | |
tree | fd0be56078f2d6c3d6c41b3a40dc572b704831b0 | |
parent | 0cf755adbb39591e9f6d273bfe5dce2469a86dbf (diff) |
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 <raykowj@gmail.com>
-rw-r--r-- | sw/source/core/crsr/trvlfnfl.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
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(); |