summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-04-15 10:30:34 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-04-15 10:30:34 +0100
commit135907f2061550624ee1859745d94eee01849070 (patch)
treec11b18802d7f0d6a45c423c397ada4476cb703d3
parentbf2fca48975c4ecdba2cc6fd2b92aaae166a088b (diff)
fix crash on export of fdo60365-2.ods to xlsx
Change-Id: I1a281b096e4d1831bcf67ca03180afff043fbcfd
-rw-r--r--oox/source/export/chartexport.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/oox/source/export/chartexport.cxx b/oox/source/export/chartexport.cxx
index 2373c5a026fb..edc1176441e0 100644
--- a/oox/source/export/chartexport.cxx
+++ b/oox/source/export/chartexport.cxx
@@ -1980,7 +1980,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 ),
@@ -2023,7 +2023,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 ),