diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2017-03-17 12:35:53 +0100 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2017-03-30 23:54:30 +0200 |
commit | e5c8cbe1bacc8b99669aec9e6921417b1d4639f5 (patch) | |
tree | 76e56ff3ceb0c15f7ce2056fee92684cce7aed68 | |
parent | b0184f8178eeb9ab4f9053e3b2a5179c665b6551 (diff) |
chart2: check if data provider is pivot chart
Change-Id: Ib5e034f4d9d91a7c7b8627383e4ff3f5ae34b6bb
-rw-r--r-- | chart2/source/view/main/ChartView.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chart2/source/view/main/ChartView.cxx b/chart2/source/view/main/ChartView.cxx index 285bc3facd26..fed132c1bda1 100644 --- a/chart2/source/view/main/ChartView.cxx +++ b/chart2/source/view/main/ChartView.cxx @@ -2494,6 +2494,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 |