[Libreoffice-commits] core.git: sc/source

Markus Mohrhard markus.mohrhard at googlemail.com
Sun Oct 8 23:14:07 UTC 2017


 sc/source/core/data/document.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit d10d62c6e8f4637aea5249f9cc51302945b2069f
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Sun Oct 8 17:51:06 2017 +0200

    prevent crash in the new dataprovider UI when adding a new column
    
    Change-Id: I3f87d2dac75662ab1da6049579d33d6b39e1da0c
    Reviewed-on: https://gerrit.libreoffice.org/43257
    Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
    Tested-by: Markus Mohrhard <markus.mohrhard at googlemail.com>

diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx
index 86b57f4077e6..94b96c051836 100644
--- a/sc/source/core/data/document.cxx
+++ b/sc/source/core/data/document.cxx
@@ -1574,7 +1574,7 @@ bool ScDocument::InsertCol( SCROW nStartRow, SCTAB nStartTab,
         bRet = true;
     }
     SetAutoCalc( bOldAutoCalc );
-    if ( bRet )
+    if ( bRet && pChartListenerCollection )
         pChartListenerCollection->UpdateDirtyCharts();
     return bRet;
 }


More information about the Libreoffice-commits mailing list