diff options
Diffstat (limited to 'vcl/source/window/toolbox.cxx')
-rw-r--r-- | vcl/source/window/toolbox.cxx | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx index 338d817cf25d..3cbd2db0c3f2 100644 --- a/vcl/source/window/toolbox.cxx +++ b/vcl/source/window/toolbox.cxx @@ -2368,10 +2368,7 @@ static void ImplDrawMoreIndicator(vcl::RenderContext& rRenderContext, const tool static void ImplDrawDropdownArrow(vcl::RenderContext& rRenderContext, const tools::Rectangle& rDropDownRect, bool bSetColor, bool bRotate ) { - bool bLineColor = rRenderContext.IsLineColor(); - bool bFillColor = rRenderContext.IsFillColor(); - Color aOldFillColor = rRenderContext.GetFillColor(); - Color aOldLineColor = rRenderContext.GetLineColor(); + rRenderContext.Push(vcl::PushFlags::FILLCOLOR | vcl::PushFlags::LINECOLOR); rRenderContext.SetLineColor(); if ( bSetColor ) @@ -2409,14 +2406,7 @@ static void ImplDrawDropdownArrow(vcl::RenderContext& rRenderContext, const tool rRenderContext.DrawPolygon( aPoly ); rRenderContext.SetAntialiasing(aaflags); - if( bFillColor ) - rRenderContext.SetFillColor(aOldFillColor); - else - rRenderContext.SetFillColor(); - if( bLineColor ) - rRenderContext.SetLineColor(aOldLineColor); - else - rRenderContext.SetLineColor(); + rRenderContext.Pop(); } void ToolBox::ImplDrawMenuButton(vcl::RenderContext& rRenderContext, bool bHighlight) |