[Libreoffice-commits] core.git: Branch 'libreoffice-4-1' - oox/source

Muthu Subramanian sumuthu at collabora.com
Wed Jan 8 04:29:42 PST 2014


 oox/source/drawingml/chart/seriesconverter.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit e8ac85752a2e07ceacb3b2f3e4eab3bc35a45c3d
Author: Muthu Subramanian <sumuthu at collabora.com>
Date:   Tue Oct 22 15:13:41 2013 +0530

    n#839727 / rhbz#1038176 Crash fix
    
    (cherry picked from commit e5f24e0c7c8f4799223c19359f4228f0b1a71461)
    
    Change-Id: I8d733afbbc05900c68217ead44de798c1263ca84
    Reviewed-on: https://gerrit.libreoffice.org/7309
    Reviewed-by: Andras Timar <andras.timar at collabora.com>
    Tested-by: Andras Timar <andras.timar at collabora.com>

diff --git a/oox/source/drawingml/chart/seriesconverter.cxx b/oox/source/drawingml/chart/seriesconverter.cxx
index 9ef1f3f..020b141 100644
--- a/oox/source/drawingml/chart/seriesconverter.cxx
+++ b/oox/source/drawingml/chart/seriesconverter.cxx
@@ -632,7 +632,8 @@ Reference< XDataSeries > SeriesConverter::createDataSeries( const TypeGroupConve
         {
             // Use number format code from Value series
             DataSourceModel* pValues = mrModel.maSources.get( SeriesModel::VALUES ).get();
-            xLabels->maNumberFormat.maFormatCode = pValues->mxDataSeq->maFormatCode;
+            if( pValues )
+                xLabels->maNumberFormat.maFormatCode = pValues->mxDataSeq->maFormatCode;
         }
         DataLabelsConverter aLabelsConv( *this, *xLabels );
         aLabelsConv.convertFromModel( xDataSeries, rTypeGroup );


More information about the Libreoffice-commits mailing list