summaryrefslogtreecommitdiff
path: root/oox/source
diff options
context:
space:
mode:
authorHeena Gupta <heena.h.gupta@ericsson.com>2014-07-22 22:18:19 +0530
committerAndras Timar <andras.timar@collabora.com>2014-07-23 09:12:31 +0000
commitef5814e564cc92ae005887ecedeea25243a29491 (patch)
treeba8563e020cb9b4baeac074df896c009f33d5dd4 /oox/source
parente934df1c0702c37a6fcee956f75250e8b736c3c5 (diff)
fdo#54361: Chart background in XLSX is transparent instead of white
Cherry-picked from 53b9adc135f4abb086c740582e5f85cea710287d and 6d3269ad94bbad8abae5703edc86d8888356bf14 Change-Id: I96d86854484deb7b5c0b99739fed60a430f2f957 Reviewed-on: https://gerrit.libreoffice.org/10468 Reviewed-by: Andras Timar <andras.timar@collabora.com> Tested-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'oox/source')
-rw-r--r--oox/source/drawingml/chart/chartspaceconverter.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/oox/source/drawingml/chart/chartspaceconverter.cxx b/oox/source/drawingml/chart/chartspaceconverter.cxx
index e24388d5c00f..2238fe2d10bf 100644
--- a/oox/source/drawingml/chart/chartspaceconverter.cxx
+++ b/oox/source/drawingml/chart/chartspaceconverter.cxx
@@ -92,7 +92,10 @@ void ChartSpaceConverter::convertFromModel( const Reference< XShapes >& rxExtern
// formatting of the chart background
PropertySet aBackPropSet( getChartDocument()->getPageBackground() );
- getFormatter().convertFrameFormatting( aBackPropSet, mrModel.mxShapeProp, OBJECTTYPE_CHARTSPACE );
+ if( mrModel.mxShapeProp.is() )
+ {
+ getFormatter().convertFrameFormatting( aBackPropSet, mrModel.mxShapeProp, OBJECTTYPE_CHARTSPACE );
+ }
// convert plot area (container of all chart type groups)
PlotAreaConverter aPlotAreaConv( *this, mrModel.mxPlotArea.getOrCreate() );