summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-05-05 21:35:07 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-05-06 01:36:22 +0200
commit93abb2082ad3cae1432d69b65a89dace6646785a (patch)
tree943eda48fb1aaca8ef580e1d17203f3ffdf0d3c8
parentbcb662a210f5e0c0e760bab1ba7c3d4b5d002c6c (diff)
let us be explicit about default values
Different MSO versions behave differently in respect to the default values. 2007 is not compliant to OOXML and is what our export filter expects, 2010+ are compliant to OOXML and therefore our charts look awful. Change-Id: If301d878a1603ed9835884cfbb9ed9c902526ba0
-rw-r--r--oox/source/export/drawingml.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx
index cad8ea172caf..cbabf5b6f804 100644
--- a/oox/source/export/drawingml.cxx
+++ b/oox/source/export/drawingml.cxx
@@ -1522,8 +1522,7 @@ void DrawingML::WriteFill( Reference< XPropertySet > xPropSet )
FillStyle aFillStyle( FillStyle_NONE );
xPropSet->getPropertyValue( "FillStyle" ) >>= aFillStyle;
- if( aFillStyle == FillStyle_NONE ||
- aFillStyle == FillStyle_HATCH )
+ if( aFillStyle == FillStyle_HATCH )
return;
switch( aFillStyle )
@@ -1537,6 +1536,9 @@ void DrawingML::WriteFill( Reference< XPropertySet > xPropSet )
case ::com::sun::star::drawing::FillStyle_BITMAP :
WriteBlipFill( xPropSet, "FillBitmapURL" );
break;
+ case ::com::sun::star::drawing::FillStyle_NONE:
+ mpFS->singleElementNS( XML_a, XML_noFill, FSEND );
+ break;
default:
;
}