vcl/headless/CairoCommon.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 9eeacdd6cd5fa4ad0d29b530a627f398be763cc2
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Thu Jan 5 17:23:26 2023 +0000
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Fri Jan 6 08:48:17 2023 +0000

    adjust bodge to be only for CAIRO_CONTENT_ALPHA
    
    rather than specifically !CAIRO_CONTENT_COLOR_ALPHA
    
    Change-Id: I2b86feb8499b98e750e954c4b246d4c8bc3ef7cf
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145110
    Tested-by: Caolán McNamara <caol...@redhat.com>
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/vcl/headless/CairoCommon.cxx b/vcl/headless/CairoCommon.cxx
index 39538a9f9f40..f50705b91584 100644
--- a/vcl/headless/CairoCommon.cxx
+++ b/vcl/headless/CairoCommon.cxx
@@ -568,7 +568,7 @@ cairo_t* CairoCommon::createTmpCompatibleCairoContext() 
const
 
 void CairoCommon::applyColor(cairo_t* cr, Color aColor, double fTransparency)
 {
-    if (cairo_surface_get_content(cairo_get_target(cr)) == 
CAIRO_CONTENT_COLOR_ALPHA)
+    if (cairo_surface_get_content(cairo_get_target(cr)) != CAIRO_CONTENT_ALPHA)
     {
         cairo_set_source_rgba(cr, aColor.GetRed() / 255.0, aColor.GetGreen() / 
255.0,
                               aColor.GetBlue() / 255.0, 1.0 - fTransparency);

Reply via email to