[Libreoffice-commits] core.git: oox/source

Muthu Subramanian sumuthu at suse.com
Tue Jul 9 01:24:00 PDT 2013


 oox/source/drawingml/shape.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit da4ec594da45210a1f97d31ecb3e7f9c127954e5
Author: Muthu Subramanian <sumuthu at suse.com>
Date:   Tue Jul 9 14:00:21 2013 +0530

    n#819822: Crash fix, check validity.

diff --git a/oox/source/drawingml/shape.cxx b/oox/source/drawingml/shape.cxx
index 96a67d6..1a1a1e1 100644
--- a/oox/source/drawingml/shape.cxx
+++ b/oox/source/drawingml/shape.cxx
@@ -718,7 +718,7 @@ void Shape::finalizeXShape( XmlFilterBase& rFilter, const Reference< XShapes >&
                     {
                         Reference< chart2::data::XDataReceiver > xDataRec( xChartDoc, UNO_QUERY );
                         Reference< chart2::data::XDataSource > xData( xDataRec->getUsedData(), UNO_QUERY );
-                        if( xData->getDataSequences()[0]->getValues()->getData().getLength() <= 0 )
+                        if( xData->getDataSequences().getLength() <= 0 || xData->getDataSequences()[0]->getValues()->getData().getLength() <= 0 )
                         {
                             rFilter.useInternalChartDataTable( true );
                             rFilter.getChartConverter()->convertFromModel( rFilter, aModel, xChartDoc, xExternalPage, mxShape->getPosition(), mxShape->getSize() );


More information about the Libreoffice-commits mailing list