summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2017-03-06 22:26:32 +0100
committerEike Rathke <erack@redhat.com>2017-03-07 10:51:50 +0100
commit4c8059a3e140171399ac85ceb882d23bb458599d (patch)
treec2628e908cf73016d5ee02e9284ec52062b51429
parent3ecca2522d768bb66fa0ad8d8d64cb33cc3ea99f (diff)
Resolves: tdf#102777 broadcast SC_TAB_INSERTED when inserting scenario
So ScViewData::maTabData gets an entry added which deleting the scenario can remove again. Change-Id: I166baeff5408ef67faef41364515a13b8d4610bb
-rw-r--r--sc/source/ui/docshell/docsh5.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/ui/docshell/docsh5.cxx b/sc/source/ui/docshell/docsh5.cxx
index 66d7cc53969c..b39dcf9b158e 100644
--- a/sc/source/ui/docshell/docsh5.cxx
+++ b/sc/source/ui/docshell/docsh5.cxx
@@ -829,6 +829,9 @@ SCTAB ScDocShell::MakeScenario( SCTAB nTab, const OUString& rName, const OUStrin
PostPaintExtras(); // Tabellenreiter
aModificator.SetDocumentModified();
+ // A scenario tab is like a hidden sheet, broadcasting also
+ // notifies ScTabViewShell to add an ScViewData::maTabData entry.
+ Broadcast( ScTablesHint( SC_TAB_INSERTED, nNewTab ));
SfxGetpApp()->Broadcast( SfxHint( SfxHintId::ScTablesChanged ) );
return nNewTab;