[Libreoffice-commits] core.git: Branch 'libreoffice-4-3' - oox/source
Caolán McNamara
caolanm at redhat.com
Fri Apr 17 12:18:56 PDT 2015
oox/source/export/chartexport.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit b748d80a408e822c367e9b87fe2c7f50322c2219
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Apr 15 10:30:34 2015 +0100
fix crash on export of fdo60365-2.ods to xlsx
Change-Id: I1a281b096e4d1831bcf67ca03180afff043fbcfd
(cherry picked from commit 135907f2061550624ee1859745d94eee01849070)
Reviewed-on: https://gerrit.libreoffice.org/15321
Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
diff --git a/oox/source/export/chartexport.cxx b/oox/source/export/chartexport.cxx
index 0929096..cdcd680 100644
--- a/oox/source/export/chartexport.cxx
+++ b/oox/source/export/chartexport.cxx
@@ -1941,7 +1941,7 @@ void ChartExport::exportSeriesCategory( const Reference< chart2::data::XDataSequ
pFS->startElement( FSNS( XML_c, XML_cat ),
FSEND );
- OUString aCellRange = xValueSeq->getSourceRangeRepresentation();
+ OUString aCellRange = xValueSeq.is() ? xValueSeq->getSourceRangeRepresentation() : OUString();
aCellRange = parseFormula( aCellRange );
// TODO: need to handle XML_multiLvlStrRef according to aCellRange
pFS->startElement( FSNS( XML_c, XML_strRef ),
@@ -1984,7 +1984,7 @@ void ChartExport::exportSeriesValues( const Reference< chart2::data::XDataSequen
pFS->startElement( FSNS( XML_c, nValueType ),
FSEND );
- OUString aCellRange = xValueSeq->getSourceRangeRepresentation();
+ OUString aCellRange = xValueSeq.is() ? xValueSeq->getSourceRangeRepresentation() : OUString();
aCellRange = parseFormula( aCellRange );
// TODO: need to handle XML_multiLvlStrRef according to aCellRange
pFS->startElement( FSNS( XML_c, XML_numRef ),
More information about the Libreoffice-commits
mailing list