diff options
author | Dennis Francis <dennis.francis@collabora.co.uk> | 2017-08-03 14:27:46 +0530 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-08-08 07:27:55 +0200 |
commit | 5b121b12b50c0db8f5b68616cd8ad95baf91b4f4 (patch) | |
tree | 94fea14d68a3a886667d1d7f7d84046444b16513 | |
parent | bd0c6fb52bd7af947936f736c7357200e2d17fc2 (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>
(cherry picked from commit bc6f56e4bb27f802e90303073ba5e2a676baa39b)
Reviewed-on: https://gerrit.libreoffice.org/40828
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
-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 b51dbbe1acda..55332765bb96 100644 --- a/sc/source/ui/view/viewfun2.cxx +++ b/sc/source/ui/view/viewfun2.cxx @@ -2775,7 +2775,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 |