diff options
-rw-r--r-- | chart2/source/controller/main/ChartController.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chart2/source/controller/main/ChartController.cxx b/chart2/source/controller/main/ChartController.cxx index a4a641704dfb..ce70a165c3af 100644 --- a/chart2/source/controller/main/ChartController.cxx +++ b/chart2/source/controller/main/ChartController.cxx @@ -278,7 +278,7 @@ css::uno::Reference<css::chart2::XChartType> getChartType( const css::uno::Reference<css::chart2::XChartDocument>& xChartDoc) { Reference <chart2::XDiagram > xDiagram = xChartDoc->getFirstDiagram(); - if (xDiagram == nullptr) { + if (!xDiagram.is()) { return css::uno::Reference<css::chart2::XChartType>(); } |