[Libreoffice-commits] core.git: Branch 'feature/gsoc14-draw-text-background-color' - drawinglayer/source

matteocam matteo.campanelli at gmail.com
Fri Jun 13 08:09:27 PDT 2014


 drawinglayer/source/processor2d/vclprocessor2d.cxx |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

New commits:
commit 11cd641c130358942fc4a9cbc534dc6be9d8c4a2
Author: matteocam <matteo.campanelli at gmail.com>
Date:   Fri Jun 13 17:08:56 2014 +0200

    Experiment with underlining in VclProcessor's text rendering
    
    Change-Id: Ib1f0e853dec1cb9aa00f585e5d8cdce836478ebb

diff --git a/drawinglayer/source/processor2d/vclprocessor2d.cxx b/drawinglayer/source/processor2d/vclprocessor2d.cxx
index 7758ed4..8b660cb 100644
--- a/drawinglayer/source/processor2d/vclprocessor2d.cxx
+++ b/drawinglayer/source/processor2d/vclprocessor2d.cxx
@@ -190,9 +190,13 @@ namespace drawinglayer
                         // set FillColor Attribute
                         // FIXME(matteocam)
                         // XXX: is "Color" the right type
-                        const Color aFillColor(pTCPP->getFillColor() );
-                        if( aFillColor != COL_TRANSPARENT )
+
+                        //const Color aFillColor(pTCPP->getFontFillColor() );
+                        //if( aFillColor != COL_TRANSPARENT )
+                        // set fill Color if underlined
+                        if ( eFontUnderline != UNDERLINE_NONE )
                         {
+                            aFillColor = RGB_COLORDATA(0x66, 0x66, 0xff)
                             aFont.SetFillColor(aFillColor);
                             aFont.SetTransparent(false);
                         }


More information about the Libreoffice-commits mailing list