diff options
author | Dennis Francis <dennis.francis@collabora.co.uk> | 2017-08-03 14:27:46 +0530 |
---|---|---|
committer | Dennis Francis <dennis.francis@collabora.co.uk> | 2017-08-07 10:00:00 +0200 |
commit | bc6f56e4bb27f802e90303073ba5e2a676baa39b (patch) | |
tree | 299102e5820ece20c03f0f4931a6e4289afc1748 /sc | |
parent | 561cae8e81913940e4af86901ec46a484669c597 (diff) |
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@libreoffice.org>
Reviewed-by: Dennis Francis <dennis.francis@collabora.co.uk>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/view/viewfun2.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
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 |