svx/source/stbctrls/pszctrl.cxx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)
New commits: commit d273191c0f3698ebe3772d286615255b942657b9 Author: Noel Grandin <[email protected]> AuthorDate: Thu Jul 3 12:23:05 2025 +0200 Commit: Noel Grandin <[email protected]> CommitDate: Thu Jul 3 17:05:06 2025 +0200 tdf#166842 do not use LineColor==COL_TRANSPARENT... .. on OutputDevice if that OutputDevice does not support alpha Change-Id: I8f11a1bcd8148da8bcd8676a20d17c74d36f4e42 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187306 Reviewed-by: Noel Grandin <[email protected]> Tested-by: Jenkins diff --git a/svx/source/stbctrls/pszctrl.cxx b/svx/source/stbctrls/pszctrl.cxx index 28db3adefb20..89746ef61614 100644 --- a/svx/source/stbctrls/pszctrl.cxx +++ b/svx/source/stbctrls/pszctrl.cxx @@ -437,8 +437,7 @@ void SvxPosSizeStatusBarControl::Paint( const UserDrawEvent& rUsrEvt ) const tools::Rectangle& rRect = rUsrEvt.GetRect(); StatusBar& rBar = GetStatusBar(); Point aItemPos = rBar.GetItemTextPos( GetId() ); - Color aOldLineColor = pDev->GetLineColor(); - Color aOldFillColor = pDev->GetFillColor(); + pDev->Push(vcl::PushFlags::LINECOLOR | vcl::PushFlags::FILLCOLOR); pDev->SetLineColor(); pDev->SetFillColor( pDev->GetBackground().GetColor() ); @@ -501,9 +500,7 @@ void SvxPosSizeStatusBarControl::Paint( const UserDrawEvent& rUsrEvt ) // Date/Time are no longer used (#65302#). pDev->DrawRect( rRect ); } - - pDev->SetLineColor( aOldLineColor ); - pDev->SetFillColor( aOldFillColor ); + pDev->Pop(); } void SvxPosSizeStatusBarControl::ImplUpdateItemText()
