sc/source/ui/undo/undotab.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit b73254d275ceff67e4929f2a11004aa7fca039df
Author:     Eike Rathke <er...@redhat.com>
AuthorDate: Tue Sep 6 21:41:51 2022 +0200
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Wed Sep 7 08:21:16 2022 +0200

    Resolves: tdf#150829 Broadcast missing ScAreasChanged hint on sheet copy 
Undo
    
    Change-Id: I354b1e395079067cd4cc9299501b3936dea00cd8
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139538
    Reviewed-by: Eike Rathke <er...@redhat.com>
    Tested-by: Jenkins
    (cherry picked from commit 922b79a0f5a9151a6870ba395abcac5b54055275)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139512
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/sc/source/ui/undo/undotab.cxx b/sc/source/ui/undo/undotab.cxx
index b3842eb1624e..a4000a12863a 100644
--- a/sc/source/ui/undo/undotab.cxx
+++ b/sc/source/ui/undo/undotab.cxx
@@ -598,7 +598,9 @@ void ScUndoCopyTab::DoChange() const
     if (pViewShell)
         pViewShell->SetTabNo((*mpOldTabs)[0],true);
 
-    SfxGetpApp()->Broadcast( SfxHint( SfxHintId::ScTablesChanged ) );    // 
Navigator
+    SfxApplication* pSfxApp = SfxGetpApp();                         // 
Navigator
+    pSfxApp->Broadcast( SfxHint( SfxHintId::ScTablesChanged ) );
+    pSfxApp->Broadcast( SfxHint( SfxHintId::ScAreasChanged ) );
 
     pDocShell->PostPaintGridAll();
     pDocShell->PostPaintExtras();

Reply via email to