summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authornd101 <Fong@nd.com.cn>2020-06-23 22:15:40 +0800
committerXisco Fauli <xiscofauli@libreoffice.org>2020-07-14 22:06:10 +0200
commitd851a02df57ab378ed0cc6d9362516de09c3279c (patch)
tree0ae83c2ce4ed4447fd2c2ddef9b1e2c69c26a5fd /oox
parent7ef6dee499e6a705e022fc8159789599f9cbc1c0 (diff)
tdf#60316 Chart plotarea background issue
The default shall be of nofill instead of white. Change-Id: Id29feb7d1f8a24e4c3c768aa69f2775cdbf031a0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96955 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'oox')
-rw-r--r--oox/source/drawingml/chart/plotareacontext.cxx2
-rw-r--r--oox/source/drawingml/chart/plotareamodel.cxx3
2 files changed, 4 insertions, 1 deletions
diff --git a/oox/source/drawingml/chart/plotareacontext.cxx b/oox/source/drawingml/chart/plotareacontext.cxx
index 76f7c7ef1956..4f231e0eda35 100644
--- a/oox/source/drawingml/chart/plotareacontext.cxx
+++ b/oox/source/drawingml/chart/plotareacontext.cxx
@@ -191,7 +191,7 @@ ContextHandlerRef PlotAreaContext::onCreateContext( sal_Int32 nElement, const At
case C_TOKEN( layout ):
return new LayoutContext( *this, mrModel.mxLayout.create() );
case C_TOKEN( spPr ):
- return new ShapePropertiesContext( *this, mrModel.mxShapeProp.create() );
+ return new ShapePropertiesContext( *this, mrModel.mxShapeProp.getOrCreate() );
case C_TOKEN(dTable):
return new DataTableContext( *this, mrModel.mxDataTable.create() );
}
diff --git a/oox/source/drawingml/chart/plotareamodel.cxx b/oox/source/drawingml/chart/plotareamodel.cxx
index 72abacc20570..c5e403a2453a 100644
--- a/oox/source/drawingml/chart/plotareamodel.cxx
+++ b/oox/source/drawingml/chart/plotareamodel.cxx
@@ -18,6 +18,8 @@
*/
#include <drawingml/chart/plotareamodel.hxx>
+#include <drawingml/fillproperties.hxx>
+#include <oox/token/tokens.hxx>
namespace oox::drawingml::chart {
@@ -53,6 +55,7 @@ DataTableModel::~DataTableModel()
PlotAreaModel::PlotAreaModel()
{
+ mxShapeProp.create().getFillProperties().moFillType = XML_noFill;
}
PlotAreaModel::~PlotAreaModel()