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

New commits:
commit d10d62c6e8f4637aea5249f9cc51302945b2069f
Author: Markus Mohrhard <[email protected]>
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 <[email protected]>
    Tested-by: Markus Mohrhard <[email protected]>

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;
 }
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to