[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.4' - sw/source

Tamás Zolnai (via logerrit) logerrit at kemper.freedesktop.org
Wed Jan 13 02:03:11 UTC 2021


 sw/source/core/crsr/crsrsh.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 7f150d63253e171e87c09225291c4e059aaf2476
Author:     Tamás Zolnai <tamas.zolnai at collabora.com>
AuthorDate: Tue Jan 12 16:00:46 2021 +0100
Commit:     Tamás Zolnai <tamas.zolnai at collabora.com>
CommitDate: Wed Jan 13 03:02:39 2021 +0100

    tdf#139566: Fix select all (table + text) when document window looses focus.
    
    Without setting mbSelectAll properly the selection cursor
    is converted to a SwShellTableCursor, which can't handle
    if a selection is extended outside of the table.
    
    Change-Id: Ibd43097ac782b9fc02ff818d3911ebcd20efbd21
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109185
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Tamás Zolnai <tamas.zolnai at collabora.com>

diff --git a/sw/source/core/crsr/crsrsh.cxx b/sw/source/core/crsr/crsrsh.cxx
index 9df9af2501e4..7d3b70dbf363 100644
--- a/sw/source/core/crsr/crsrsh.cxx
+++ b/sw/source/core/crsr/crsrsh.cxx
@@ -2415,6 +2415,8 @@ void SwCursorShell::ShellLoseFocus()
 
 void SwCursorShell::ShellGetFocus()
 {
+    comphelper::FlagRestorationGuard g(mbSelectAll, StartsWithTable() && ExtendedSelectedAll());
+
     m_bHasFocus = true;
     if( !m_bBasicHideCursor && VisArea().Width() )
     {


More information about the Libreoffice-commits mailing list