[Libreoffice-commits] core.git: oox/source

Miklos Vajna vmiklos at collabora.co.uk
Sun May 10 11:55:42 PDT 2015


 oox/source/export/drawingml.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 6a71fc9e48654d80f9545f43066ca56103d0cf65
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Sun May 10 20:52:38 2015 +0200

    CppunitTest_sd_export_tests: fix validation errors
    
    Regression from 3e4d2043e99201ec542186039e3be34d3c226111 (tdf#90190 PPTX
    table cell border width is not exported., 2015-04-16).
    
    Change-Id: I9ccbfe32a068ea787f1bb5c62034a54f2a5996aa

diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx
index d2691cc..1b0d64f 100644
--- a/oox/source/export/drawingml.cxx
+++ b/oox/source/export/drawingml.cxx
@@ -156,7 +156,8 @@ bool DrawingML::GetPropertyAndState( Reference< XPropertySet > rXPropertySet, Re
 
 void DrawingML::WriteColor( sal_uInt32 nColor, sal_Int32 nAlpha )
 {
-    OString sColor = OString::number(  nColor, 16 );
+    // Transparency is a separate element.
+    OString sColor = OString::number(  nColor & 0x00FFFFFF, 16 );
     if( sColor.getLength() < 6 )
     {
         OStringBuffer sBuf( "0" );


More information about the Libreoffice-commits mailing list