[Libreoffice-commits] core.git: sw/source

Jim Raykowski (via logerrit) logerrit at kemper.freedesktop.org
Mon Sep 20 04:24:35 UTC 2021


 sw/source/uibase/shells/basesh.cxx |   14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

New commits:
commit f4f646eec90c44b6a7ffeaf5f6ce4c85af64eed0
Author:     Jim Raykowski <raykowj at gmail.com>
AuthorDate: Thu Sep 16 14:14:13 2021 -0800
Commit:     Jim Raykowski <raykowj at gmail.com>
CommitDate: Mon Sep 20 06:24:01 2021 +0200

    tdf#143813 Outline folding: Make copy cut paste work
    
    Change-Id: Ib8b491fdcce1cd059c8eaf80a9c3bb2590af7c63
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122212
    Tested-by: Jenkins
    Reviewed-by: Jim Raykowski <raykowj at gmail.com>

diff --git a/sw/source/uibase/shells/basesh.cxx b/sw/source/uibase/shells/basesh.cxx
index ac355361a661..2b2af670ca6b 100644
--- a/sw/source/uibase/shells/basesh.cxx
+++ b/sw/source/uibase/shells/basesh.cxx
@@ -281,8 +281,6 @@ void SwBaseShell::ExecDelete(SfxRequest &rReq)
 
 void SwBaseShell::ExecClpbrd(SfxRequest &rReq)
 {
-    MakeAllOutlineContentTemporarilyVisible a(GetShell().GetDoc());
-
     // Attention: At risk of suicide!
     // After paste, paste special the shell can be destroy.
 
@@ -355,6 +353,9 @@ void SwBaseShell::ExecClpbrd(SfxRequest &rReq)
                     if( rSh.IsFrameSelected() || rSh.IsObjSelected() )
                         rSh.EnterSelFrameMode();
                     pView->AttrChangedNotify(nullptr);
+
+                    // Fold pasted outlines that have outline content visible attribute false
+                    MakeAllOutlineContentTemporarilyVisible a(rSh.GetDoc());
                 }
                 else
                     return;
@@ -386,6 +387,9 @@ void SwBaseShell::ExecClpbrd(SfxRequest &rReq)
                         if( rSh.IsFrameSelected() || rSh.IsObjSelected())
                             rSh.EnterSelFrameMode();
                         pView->AttrChangedNotify(nullptr);
+
+                        // Fold pasted outlines that have outline content visible attribute false
+                        MakeAllOutlineContentTemporarilyVisible a(rSh.GetDoc());
                     }
                 }
             }
@@ -418,6 +422,9 @@ void SwBaseShell::ExecClpbrd(SfxRequest &rReq)
                     if (rSh.IsFrameSelected() || rSh.IsObjSelected())
                         rSh.EnterSelFrameMode();
                     pView->AttrChangedNotify(nullptr);
+
+                    // Fold pasted outlines that have outline content visible attribute false
+                    MakeAllOutlineContentTemporarilyVisible a(rSh.GetDoc());
                 }
                 else
                     return;
@@ -471,6 +478,9 @@ void SwBaseShell::ExecClpbrd(SfxRequest &rReq)
                         if (rSh.IsFrameSelected() || rSh.IsObjSelected())
                             rSh.EnterSelFrameMode();
                         pView->AttrChangedNotify(nullptr);
+
+                        // Fold pasted outlines that have outline content visible attribute false
+                        MakeAllOutlineContentTemporarilyVisible a(rSh.GetDoc());
                     }
 
                     pDlg->disposeOnce();


More information about the Libreoffice-commits mailing list