summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-01-13 08:46:28 +0000
committerCaolán McNamara <caolanm@redhat.com>2020-01-13 10:44:48 +0100
commite111483bddecff4e874ad298f762cac42a010610 (patch)
tree46ef30114e2861fa3fd9cd9320f94bd012c30b67
parent4a372929c82e894601ab243a507061e1cfc6a59d (diff)
cid#1457617 Unchecked return value
Change-Id: I2ca1d1718b725b8a940d6500fcdc4aad21489524 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86659 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--oox/source/export/chartexport.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/oox/source/export/chartexport.cxx b/oox/source/export/chartexport.cxx
index 62fc36cc5baa..02c2bdf951f4 100644
--- a/oox/source/export/chartexport.cxx
+++ b/oox/source/export/chartexport.cxx
@@ -1104,8 +1104,7 @@ void ChartExport::exportLegend( const Reference< css::chart::XChartDocument >& x
for (const auto& rCooSys : xCooSysSequence)
{
PropertySet aCooSysProp(rCooSys);
- bool bSwapXAndY = false;
- aCooSysProp.getProperty(bSwapXAndY, PROP_SwapXAndYAxis);
+ bool bSwapXAndY = aCooSysProp.getBoolProperty(PROP_SwapXAndYAxis);
Reference<chart2::XChartTypeContainer> xChartTypeContainer(rCooSys, UNO_QUERY_THROW);
const Sequence<Reference<chart2::XChartType>> xChartTypeSequence(xChartTypeContainer->getChartTypes());
@@ -1154,7 +1153,7 @@ void ChartExport::exportLegend( const Reference< css::chart::XChartDocument >& x
}
else
{
- aSeriesProp.getProperty(bShowLegendEntry, PROP_ShowLegendEntry);
+ bShowLegendEntry = aSeriesProp.getBoolProperty(PROP_ShowLegendEntry);
if (!bShowLegendEntry)
{
pFS->startElement(FSNS(XML_c, XML_legendEntry));