diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-04-15 10:30:34 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2015-04-23 15:36:29 +0200 |
commit | 28377bebe4f1ed7bc1fc341331f3dadc02b1b34f (patch) | |
tree | a022e420dafe0b4a254c6dcf6505060961b35bdc /oox | |
parent | a83b4ecbe103d4504c59d104c912c7ec56f0b868 (diff) |
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@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/export/chartexport.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/oox/source/export/chartexport.cxx b/oox/source/export/chartexport.cxx index acb4f1f8b7bc..809d8e2b5898 100644 --- a/oox/source/export/chartexport.cxx +++ b/oox/source/export/chartexport.cxx @@ -1982,7 +1982,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 ), @@ -2025,7 +2025,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 ), |