b1bd9f
From de56e13f6ddc291f2039cab57e017e9e2dd67016 Mon Sep 17 00:00:00 2001
b1bd9f
From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolanm@redhat.com>
b1bd9f
Date: Tue, 23 Jul 2019 10:38:09 +0100
b1bd9f
Subject: [PATCH] rhbz#1728763 bg of blocks is black
b1bd9f
b1bd9f
Change-Id: I31a331c8ada44b6d1424d122b54cbbe91cc8c221
b1bd9f
---
b1bd9f
 cppcanvas/source/mtfrenderer/emfplus.cxx    |  4 ++--
b1bd9f
 cppcanvas/source/mtfrenderer/textaction.cxx | 11 ++++++++++-
b1bd9f
 2 files changed, 12 insertions(+), 3 deletions(-)
b1bd9f
b1bd9f
diff --git a/cppcanvas/source/mtfrenderer/emfplus.cxx b/cppcanvas/source/mtfrenderer/emfplus.cxx
b1bd9f
index 5a9076e82a0f..8b2059a8d187 100644
b1bd9f
--- a/cppcanvas/source/mtfrenderer/emfplus.cxx
b1bd9f
+++ b/cppcanvas/source/mtfrenderer/emfplus.cxx
b1bd9f
@@ -1305,7 +1305,7 @@ namespace cppcanvas
b1bd9f
                                         ::Color(),
b1bd9f
                                         ::Size(),
b1bd9f
                                         ::Color(),
b1bd9f
-                                        ::Color(),
b1bd9f
+                                        ::Color(COL_AUTO),
b1bd9f
                                         text,
b1bd9f
                                         0,
b1bd9f
                                         stringLength,
b1bd9f
@@ -1621,7 +1621,7 @@ namespace cppcanvas
b1bd9f
                                         ::Color(),
b1bd9f
                                         ::Size(),
b1bd9f
                                         ::Color(),
b1bd9f
-                                        ::Color(),
b1bd9f
+                                        ::Color(COL_AUTO),
b1bd9f
                                         text,
b1bd9f
                                         0,
b1bd9f
                                         glyphsCount,
b1bd9f
diff --git a/cppcanvas/source/mtfrenderer/textaction.cxx b/cppcanvas/source/mtfrenderer/textaction.cxx
b1bd9f
index ad38d6c8a131..0bb23720b6a5 100644
b1bd9f
--- a/cppcanvas/source/mtfrenderer/textaction.cxx
b1bd9f
+++ b/cppcanvas/source/mtfrenderer/textaction.cxx
b1bd9f
@@ -766,6 +766,7 @@ namespace cppcanvas
b1bd9f
                                   const ::Color&             rReliefColor,
b1bd9f
                                   const ::basegfx::B2DSize&  rShadowOffset,
b1bd9f
                                   const ::Color&             rShadowColor,
b1bd9f
+                                  const ::Color&             rTextFillColor,
b1bd9f
                                   const OUString&     rText,
b1bd9f
                                   sal_Int32                  nStartPos,
b1bd9f
                                   sal_Int32                  nLen,
b1bd9f
@@ -778,6 +779,7 @@ namespace cppcanvas
b1bd9f
                                   const ::Color&                    rReliefColor,
b1bd9f
                                   const ::basegfx::B2DSize&         rShadowOffset,
b1bd9f
                                   const ::Color&                    rShadowColor,
b1bd9f
+                                  const ::Color&                    rTextFillColor,
b1bd9f
                                   const OUString&            rText,
b1bd9f
                                   sal_Int32                         nStartPos,
b1bd9f
                                   sal_Int32                         nLen,
b1bd9f
@@ -834,6 +836,7 @@ namespace cppcanvas
b1bd9f
                                                 const ::Color&             rReliefColor,
b1bd9f
                                                 const ::basegfx::B2DSize&  rShadowOffset,
b1bd9f
                                                 const ::Color&             rShadowColor,
b1bd9f
+                                                const ::Color&             rTextFillColor,
b1bd9f
                                                 const OUString&     rText,
b1bd9f
                                                 sal_Int32                  nStartPos,
b1bd9f
                                                 sal_Int32                  nLen,
b1bd9f
@@ -852,6 +855,7 @@ namespace cppcanvas
b1bd9f
                 maReliefColor( rReliefColor ),
b1bd9f
                 maShadowOffset( rShadowOffset ),
b1bd9f
                 maShadowColor( rShadowColor ),
b1bd9f
+                maTextFillColor( rTextFillColor ),
b1bd9f
                 maTextDirection( rState.textDirection )
b1bd9f
             {
b1bd9f
                 initEffectLinePolyPolygon( maLinesOverallSize,
b1bd9f
@@ -873,6 +877,7 @@ namespace cppcanvas
b1bd9f
                                                 const ::Color&                  rReliefColor,
b1bd9f
                                                 const ::basegfx::B2DSize&       rShadowOffset,
b1bd9f
                                                 const ::Color&                  rShadowColor,
b1bd9f
+                                                const ::Color&                  rTextFillColor,
b1bd9f
                                                 const OUString&          rText,
b1bd9f
                                                 sal_Int32                       nStartPos,
b1bd9f
                                                 sal_Int32                       nLen,
b1bd9f
@@ -892,6 +897,7 @@ namespace cppcanvas
b1bd9f
                 maReliefColor( rReliefColor ),
b1bd9f
                 maShadowOffset( rShadowOffset ),
b1bd9f
                 maShadowColor( rShadowColor ),
b1bd9f
+                maTextFillColor( rTextFillColor ),
b1bd9f
                 maTextDirection( rState.textDirection )
b1bd9f
             {
b1bd9f
                 initEffectLinePolyPolygon( maLinesOverallSize,
b1bd9f
@@ -2196,7 +2202,8 @@ namespace cppcanvas
b1bd9f
                     !rState.textUnderlineStyle &&
b1bd9f
                     !rState.textStrikeoutStyle &&
b1bd9f
                     rReliefColor == aEmptyColor &&
b1bd9f
-                    rShadowColor == aEmptyColor )
b1bd9f
+                    rShadowColor == aEmptyColor &&
b1bd9f
+                    rTextFillColor == aEmptyColor )
b1bd9f
                 {
b1bd9f
                     // nope
b1bd9f
                     if( rParms.maTextTransformation.is_initialized() )
b1bd9f
@@ -2231,6 +2238,7 @@ namespace cppcanvas
b1bd9f
                                                     rReliefColor,
b1bd9f
                                                     aShadowOffset,
b1bd9f
                                                     rShadowColor,
b1bd9f
+                                                    rTextFillColor,
b1bd9f
                                                     rText,
b1bd9f
                                                     nStartPos,
b1bd9f
                                                     nLen,
b1bd9f
@@ -2245,6 +2253,7 @@ namespace cppcanvas
b1bd9f
                                                     rReliefColor,
b1bd9f
                                                     aShadowOffset,
b1bd9f
                                                     rShadowColor,
b1bd9f
+                                                    rTextFillColor,
b1bd9f
                                                     rText,
b1bd9f
                                                     nStartPos,
b1bd9f
                                                     nLen,
b1bd9f
-- 
b1bd9f
2.21.0
b1bd9f