summaryrefslogtreecommitdiff
path: root/chart2/source/tools/DataSourceHelper.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-01-24 09:12:07 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-01-24 14:09:15 +0100
commit379a9e76ef5cbe7dd17641745cd07b85b5852a0b (patch)
tree8c446ce697819dea407385c294f14966df79fa5d /chart2/source/tools/DataSourceHelper.cxx
parent1da258a6269720f01e7c342e2b93e7834d86f02c (diff)
use more concrete types in chart2, ChartModel
Change-Id: I621cc667d914ddfbfc84a9dd5a71bc76d411954b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128847 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2/source/tools/DataSourceHelper.cxx')
-rw-r--r--chart2/source/tools/DataSourceHelper.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/chart2/source/tools/DataSourceHelper.cxx b/chart2/source/tools/DataSourceHelper.cxx
index 627d94416d63..851204c70a75 100644
--- a/chart2/source/tools/DataSourceHelper.cxx
+++ b/chart2/source/tools/DataSourceHelper.cxx
@@ -450,7 +450,9 @@ void DataSourceHelper::setRangeSegmentation(
if( !xDataSource.is() )
return;
- ControllerLockGuardUNO aCtrlLockGuard( xChartModel );
+ auto pModel = dynamic_cast<ChartModel*>(xChartModel.get());
+ assert(pModel);
+ ControllerLockGuardUNO aCtrlLockGuard( pModel );
xDiagram->setDiagramData( xDataSource, aArguments );
}