vcl/source/window/paint.cxx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit d983f3f4d446d23ffb48acc82bda25c7e19d107e
Author:     Mike Kaganski <mike.kagan...@collabora.com>
AuthorDate: Sun Jul 6 23:34:01 2025 +0200
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Mon Jul 7 06:34:42 2025 +0200

    tdf#166842 do not use LineColor==COL_TRANSPARENT...
    
    .. on OutputDevice if that OutputDevice does not support alpha
    
    The problem seen on Windows, when expanding "Select Chart Element"
    toolbar drop-down.
    
    Change-Id: If312292ffc10f685c52bf1a6da9d90ae39693412
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187452
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com>

diff --git a/vcl/source/window/paint.cxx b/vcl/source/window/paint.cxx
index b024374a13f4..1d64e75ba76c 100644
--- a/vcl/source/window/paint.cxx
+++ b/vcl/source/window/paint.cxx
@@ -86,7 +86,10 @@ PaintBufferGuard::PaintBufferGuard(ImplFrameData* 
pFrameData, vcl::Window* pWind
     pFrameData->mpBuffer->SetClipRegion(rDev.GetClipRegion());
     pFrameData->mpBuffer->SetFillColor(rDev.GetFillColor());
     pFrameData->mpBuffer->SetFont(pWindow->GetFont());
-    pFrameData->mpBuffer->SetLineColor(rDev.GetLineColor());
+    if (rDev.GetLineColor() == COL_TRANSPARENT)
+        pFrameData->mpBuffer->SetLineColor();
+    else
+        pFrameData->mpBuffer->SetLineColor(rDev.GetLineColor());
     pFrameData->mpBuffer->SetMapMode(pWindow->GetMapMode());
     pFrameData->mpBuffer->SetRefPoint(rDev.GetRefPoint());
     pFrameData->mpBuffer->SetSettings(pWindow->GetSettings());

Reply via email to