diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-08-14 15:48:12 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-08-14 21:54:18 +0200 |
commit | 704133f7cb76b29a86d97d776b594c5ebf9a1123 (patch) | |
tree | 7cd179d89e5c2ec14e81ce211dbef87beb090496 /chart2 | |
parent | xmlsecurity: nsscrypto_initialize: try to avoid profile migration (diff) | |
download | core-704133f7cb76b29a86d97d776b594c5ebf9a1123.tar.gz core-704133f7cb76b29a86d97d776b594c5ebf9a1123.zip |
Resolves: tdf#117069 crash double clicking in certain chart
Change-Id: I4506a3517eff7f73cf793195e9d605d450b84fda
Reviewed-on: https://gerrit.libreoffice.org/58996
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Jenkins
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/controller/main/ChartController.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chart2/source/controller/main/ChartController.cxx b/chart2/source/controller/main/ChartController.cxx index 3fc25dd822a7..5e288da2a3bd 100644 --- a/chart2/source/controller/main/ChartController.cxx +++ b/chart2/source/controller/main/ChartController.cxx @@ -266,6 +266,9 @@ css::uno::Reference<css::chart2::XChartType> getChartType( Reference< chart2::XCoordinateSystemContainer > xCooSysContainer( xDiagram, uno::UNO_QUERY_THROW ); Sequence< Reference< chart2::XCoordinateSystem > > xCooSysSequence( xCooSysContainer->getCoordinateSystems()); + if (!xCooSysSequence.getLength()) { + return css::uno::Reference<css::chart2::XChartType>(); + } Reference< chart2::XChartTypeContainer > xChartTypeContainer( xCooSysSequence[0], uno::UNO_QUERY_THROW ); |