chart2/source/view/main/ChartView.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit ac6c1b8a0b2f49b80f8aa41a3b6fa46e7dd7120f
Author: Tomaž Vajngerl <[email protected]>
Date:   Fri Mar 17 12:35:53 2017 +0100

    chart2: check if data provider is pivot chart
    
    Change-Id: Ib5e034f4d9d91a7c7b8627383e4ff3f5ae34b6bb

diff --git a/chart2/source/view/main/ChartView.cxx 
b/chart2/source/view/main/ChartView.cxx
index 1503714cfd6e..19d6f26ffd20 100644
--- a/chart2/source/view/main/ChartView.cxx
+++ b/chart2/source/view/main/ChartView.cxx
@@ -2493,6 +2493,8 @@ void lcl_createButtons(const uno::Reference< 
drawing::XShapes>& xPageShapes,
                        awt::Rectangle& rRemainingSpace)
 {
     uno::Reference<chart2::data::XPivotChartDataProvider> 
xPivotChartDataProvider(rModel.getDataProvider(), uno::UNO_QUERY);
+    if (!xPivotChartDataProvider.is())
+        return;
 
     uno::Reference<beans::XPropertySet> xModelPage(rModel.getPageBackground());
     awt::Size aSize(3000, 700); // size of the button
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to