[Libreoffice-commits] core.git: Branch 'libreoffice-5-4' - sc/source

Dennis Francis dennis.francis at collabora.co.uk
Tue Aug 8 05:28:24 UTC 2017


 sc/source/ui/view/viewfun2.cxx |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

New commits:
commit 5b121b12b50c0db8f5b68616cd8ad95baf91b4f4
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>
    (cherry picked from commit bc6f56e4bb27f802e90303073ba5e2a676baa39b)
    Reviewed-on: https://gerrit.libreoffice.org/40828
    Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>

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


More information about the Libreoffice-commits mailing list