[Libreoffice-commits] core.git: sc/source
Dennis Francis
dennis.francis at collabora.co.uk
Mon Aug 7 08:00:46 UTC 2017
sc/source/ui/view/viewfun2.cxx | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
New commits:
commit bc6f56e4bb27f802e90303073ba5e2a676baa39b
Author: Dennis Francis <dennis.francis at collabora.co.uk>
Date: Thu Aug 3 14:27:46 2017 +0530
tdf#109859: Update the view data of new document when...
...a set of sheets are copied to a new spreadsheet document.
Change-Id: I47642b4aa2543c193328d9515564bfbacf044bbc
Reviewed-on: https://gerrit.libreoffice.org/40764
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Dennis Francis <dennis.francis at collabora.co.uk>
diff --git a/sc/source/ui/view/viewfun2.cxx b/sc/source/ui/view/viewfun2.cxx
index 8c173c4194a9..cf01cb183b02 100644
--- a/sc/source/ui/view/viewfun2.cxx
+++ b/sc/source/ui/view/viewfun2.cxx
@@ -2773,7 +2773,12 @@ void ScViewFunc::MoveTable(
if ( pDestDoc->IsChartListenerCollectionNeedsUpdate() )
pDestDoc->UpdateChartListenerCollection();
- pDestDoc->DeleteTab(static_cast<SCTAB>(TheTabs.size())); // old first table
+ SCTAB nNumTabsInserted = static_cast<SCTAB>(TheTabs.size());
+ pDestShell->Broadcast( ScTablesHint( SC_TABS_INSERTED, 0, nNumTabsInserted ) );
+
+ pDestDoc->DeleteTab( nNumTabsInserted ); // old first table
+ pDestShell->Broadcast( ScTablesHint( SC_TAB_DELETED, nNumTabsInserted ) );
+
if (pDestViewSh)
{
// Make sure to clear the cached page view after sheet
More information about the Libreoffice-commits
mailing list