sc/source/ui/docshell/docfunc.cxx |    1 +
 sc/source/ui/undo/undotab.cxx     |    1 +
 sc/source/ui/view/viewfun2.cxx    |    1 +
 3 files changed, 3 insertions(+)

New commits:
commit c36dcb281f6e64d91fcb4dfdc52697da5c666db1
Author:     Eike Rathke <er...@redhat.com>
AuthorDate: Mon Sep 5 20:06:56 2022 +0200
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Tue Sep 6 14:57:33 2022 +0200

    Resolves: tdf#150307 Broadcast missing ScAreasChanged hint on sheet deletion
    
    ... and Undo.
    
    Change-Id: I59413d5470294c415c51e7d7ada9134f4173c872
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139450
    Reviewed-by: Eike Rathke <er...@redhat.com>
    Tested-by: Jenkins
    (cherry picked from commit 0ff4a77f337237a5cad1d44390ff924af3992ff8)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139432
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/sc/source/ui/docshell/docfunc.cxx 
b/sc/source/ui/docshell/docfunc.cxx
index a126b0b9330b..611f8c9dddfb 100644
--- a/sc/source/ui/docshell/docfunc.cxx
+++ b/sc/source/ui/docshell/docfunc.cxx
@@ -3400,6 +3400,7 @@ bool ScDocFunc::DeleteTable( SCTAB nTab, bool bRecord )
 
         SfxApplication* pSfxApp = SfxGetpApp();                                
// Navigator
         pSfxApp->Broadcast( SfxHint( SfxHintId::ScTablesChanged ) );
+        pSfxApp->Broadcast( SfxHint( SfxHintId::ScAreasChanged ) );
         pSfxApp->Broadcast( SfxHint( SfxHintId::ScDbAreasChanged ) );
         pSfxApp->Broadcast( SfxHint( SfxHintId::ScAreaLinksChanged ) );
 
diff --git a/sc/source/ui/undo/undotab.cxx b/sc/source/ui/undo/undotab.cxx
index 467e93cb7145..8fc45c5279a9 100644
--- a/sc/source/ui/undo/undotab.cxx
+++ b/sc/source/ui/undo/undotab.cxx
@@ -363,6 +363,7 @@ void ScUndoDeleteTab::Undo()
     }
     SfxApplication* pSfxApp = SfxGetpApp();                                // 
Navigator
     pSfxApp->Broadcast( SfxHint( SfxHintId::ScTablesChanged ) );
+    pSfxApp->Broadcast( SfxHint( SfxHintId::ScAreasChanged ) );
     pSfxApp->Broadcast( SfxHint( SfxHintId::ScDbAreasChanged ) );
     pSfxApp->Broadcast( SfxHint( SfxHintId::ScAreaLinksChanged ) );
 
diff --git a/sc/source/ui/view/viewfun2.cxx b/sc/source/ui/view/viewfun2.cxx
index f5c79f583efb..fe8536918164 100644
--- a/sc/source/ui/view/viewfun2.cxx
+++ b/sc/source/ui/view/viewfun2.cxx
@@ -2591,6 +2591,7 @@ bool ScViewFunc::DeleteTables(const vector<SCTAB> 
&TheTabs, bool bRecord )
 
         SfxApplication* pSfxApp = SfxGetpApp();                                
// Navigator
         pSfxApp->Broadcast( SfxHint( SfxHintId::ScTablesChanged ) );
+        pSfxApp->Broadcast( SfxHint( SfxHintId::ScAreasChanged ) );
         pSfxApp->Broadcast( SfxHint( SfxHintId::ScDbAreasChanged ) );
         pSfxApp->Broadcast( SfxHint( SfxHintId::ScAreaLinksChanged ) );
     }

Reply via email to