[Libreoffice-commits] core.git: oox/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Mon Jan 13 09:45:21 UTC 2020
oox/source/export/chartexport.cxx | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
New commits:
commit e111483bddecff4e874ad298f762cac42a010610
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Mon Jan 13 08:46:28 2020 +0000
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Mon Jan 13 10:44:48 2020 +0100
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 at redhat.com>
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));
More information about the Libreoffice-commits
mailing list