summaryrefslogtreecommitdiff
path: root/vcl/source/control/slider.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/control/slider.cxx')
-rw-r--r--vcl/source/control/slider.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/source/control/slider.cxx b/vcl/source/control/slider.cxx
index 24c84d0a3a3e..f25cd384d68c 100644
--- a/vcl/source/control/slider.cxx
+++ b/vcl/source/control/slider.cxx
@@ -355,7 +355,6 @@ void Slider::ImplDraw(vcl::RenderContext& rRenderContext)
}
DecorationView aDecoView(&rRenderContext);
- DrawButtonFlags nStyle;
const StyleSettings& rStyleSettings = rRenderContext.GetSettings().GetStyleSettings();
bool bEnabled = IsEnabled();
@@ -449,7 +448,7 @@ void Slider::ImplDraw(vcl::RenderContext& rRenderContext)
if (bEnabled)
{
- nStyle = DrawButtonFlags::NONE;
+ DrawButtonFlags nStyle = DrawButtonFlags::NONE;
if (mnStateFlags & SLIDER_STATE_THUMB_DOWN)
nStyle |= DrawButtonFlags::Pressed;
aDecoView.DrawButton(maThumbRect, nStyle);