[Libreoffice-commits] core.git: Branch 'feature/pivotcharts' - chart2/source

Tomaž Vajngerl tomaz.vajngerl at collabora.co.uk
Fri Mar 17 11:37:10 UTC 2017


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

New commits:
commit ac6c1b8a0b2f49b80f8aa41a3b6fa46e7dd7120f
Author: Tomaž Vajngerl <tomaz.vajngerl at collabora.co.uk>
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


More information about the Libreoffice-commits mailing list