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>
diff --git a/oox/source/drawingml/chart/plotareacontext.cxx b/oox/source/drawingml/chart/plotareacontext.cxx
index 76f7c7e..4f231e0 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 72abacc..c5e403a2 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()