From 28db7d7919524989aff96c33051cceeac4adb2a1 Mon Sep 17 00:00:00 2001 From: Jacobo Aragunde PĂ©rez Date: Thu, 30 Jan 2014 12:23:46 +0100 Subject: drawingML: fix transparency of shape solid fill The empty value for transparency in drawingML is 100% and not 0. Change-Id: I5f34f03b9b72cc20e92e32f9c9bc1bdfae73ff55 --- include/oox/export/drawingml.hxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include/oox/export/drawingml.hxx') diff --git a/include/oox/export/drawingml.hxx b/include/oox/export/drawingml.hxx index 000cd4e81302..08fb539992fc 100644 --- a/include/oox/export/drawingml.hxx +++ b/include/oox/export/drawingml.hxx @@ -27,6 +27,7 @@ #include #include #include +#include "oox/drawingml/drawingmltypes.hxx" #ifndef PPTX_EXPORT_ROTATE_CLOCKWISIFY // Our rotation is counter-clockwise and is in 100ths of a degree. // drawingML rotation is clockwise and is in 60000ths of a degree. @@ -120,8 +121,8 @@ public: void WriteLineArrow( ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > rXPropSet, sal_Bool bLineStart ); void WriteConnectorConnections( EscherConnectorListEntry& rConnectorEntry, sal_Int32 nStartID, sal_Int32 nEndID ); - void WriteSolidFill( sal_uInt32 nColor, sal_Int32 nAlpha = 0 ); - void WriteSolidFill( OUString sSchemeName, sal_Int32 nAlpha = 0 ); + void WriteSolidFill( sal_uInt32 nColor, sal_Int32 nAlpha = MAX_PERCENT ); + void WriteSolidFill( OUString sSchemeName, sal_Int32 nAlpha = MAX_PERCENT ); void WriteSolidFill( ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > rXPropSet ); void WriteGradientFill( ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > rXPropSet ); void WriteBlipFill( ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > rXPropSet, OUString sURLPropName, sal_Int32 nXmlNamespace ); -- cgit v1.2.3