summaryrefslogtreecommitdiffstats
path: root/chart2/source/tools
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2022-01-29 20:25:15 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-01-30 07:10:21 +0100
commit2f2e1bb1f7a247923fc2e25bbfb227756a1f7f2a (patch)
treea05a970652ec90987724e60db8d80532cd04b18b /chart2/source/tools
parentuse more getChartModel in ChartController (diff)
downloadcore-2f2e1bb1f7a247923fc2e25bbfb227756a1f7f2a.tar.gz
core-2f2e1bb1f7a247923fc2e25bbfb227756a1f7f2a.zip
use more concrete types in chart2, Legend
Change-Id: Ib6bff730c50fdda095482f2ebf2c4e7b63b0e26b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129155 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2/source/tools')
-rw-r--r--chart2/source/tools/LegendHelper.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/chart2/source/tools/LegendHelper.cxx b/chart2/source/tools/LegendHelper.cxx
index dddcf67d0c08..5bb48f752fb1 100644
--- a/chart2/source/tools/LegendHelper.cxx
+++ b/chart2/source/tools/LegendHelper.cxx
@@ -65,11 +65,10 @@ rtl::Reference< Legend > LegendHelper::showLegend( ChartModel& rModel
void LegendHelper::hideLegend( ChartModel& rModel )
{
- uno::Reference< chart2::XLegend > xLegend = LegendHelper::getLegend( rModel, nullptr );
- uno::Reference< beans::XPropertySet > xProp( xLegend, uno::UNO_QUERY );
- if( xProp.is())
+ rtl::Reference< Legend > xLegend = LegendHelper::getLegend( rModel, nullptr );
+ if( xLegend.is())
{
- xProp->setPropertyValue( "Show", uno::Any(false) );
+ xLegend->setPropertyValue( "Show", uno::Any(false) );
}
}