vcl/source/window/paint.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 168d90524cad7493f7ffc7aeaac858d3a439d0b9
Author:     Noel Grandin <noelgran...@gmail.com>
AuthorDate: Mon Jul 7 07:53:49 2025 +0200
Commit:     Noel Grandin <noelgran...@gmail.com>
CommitDate: Mon Jul 7 12:36:14 2025 +0200

    tdf#166842 only need this adjustment if the dev has no alpha
    
    Change-Id: I86b299608b95e2d1e6eb0db652b6b82f24a224f5
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187456
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>
    Tested-by: Jenkins

diff --git a/vcl/source/window/paint.cxx b/vcl/source/window/paint.cxx
index 1d64e75ba76c..0770a2526190 100644
--- a/vcl/source/window/paint.cxx
+++ b/vcl/source/window/paint.cxx
@@ -86,7 +86,7 @@ PaintBufferGuard::PaintBufferGuard(ImplFrameData* pFrameData, 
vcl::Window* pWind
     pFrameData->mpBuffer->SetClipRegion(rDev.GetClipRegion());
     pFrameData->mpBuffer->SetFillColor(rDev.GetFillColor());
     pFrameData->mpBuffer->SetFont(pWindow->GetFont());
-    if (rDev.GetLineColor() == COL_TRANSPARENT)
+    if (!rDev.HasAlpha() && rDev.GetLineColor() == COL_TRANSPARENT)
         pFrameData->mpBuffer->SetLineColor();
     else
         pFrameData->mpBuffer->SetLineColor(rDev.GetLineColor());

Reply via email to