summaryrefslogtreecommitdiffstats
path: root/chart2/source
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2021-08-17 18:48:06 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-08-18 10:41:34 +0200
commit392f19c957b55de1ce834cb465f51f27c2c7cf60 (patch)
tree20ffca6114a023bd2114436323e1c640c25b6ba3 /chart2/source
parentjsdialog: dump selected state for toolitems (diff)
downloadcore-392f19c957b55de1ce834cb465f51f27c2c7cf60.tar.gz
core-392f19c957b55de1ce834cb465f51f27c2c7cf60.zip
improve SvxShapeCollection::getByIndex
Change-Id: I4cca7c0b6344241256d038902069a20ece314358 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120618 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2/source')
-rw-r--r--chart2/source/model/main/ChartModel.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/chart2/source/model/main/ChartModel.cxx b/chart2/source/model/main/ChartModel.cxx
index ab846502f29f..9960f84c00b1 100644
--- a/chart2/source/model/main/ChartModel.cxx
+++ b/chart2/source/model/main/ChartModel.cxx
@@ -234,7 +234,7 @@ uno::Reference< frame::XController > ChartModel::impl_getCurrentController()
// get the first controller of this model
if( m_aControllers.getLength() )
{
- uno::Reference<uno::XInterface> xI = m_aControllers.getElements()[0];
+ uno::Reference<uno::XInterface> xI = m_aControllers.getInterface(0);
return uno::Reference<frame::XController>( xI, uno::UNO_QUERY );
}