summaryrefslogtreecommitdiff
path: root/vcl/source/control/spinfld.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-02-18 14:28:47 +0000
committerCaolán McNamara <caolanm@redhat.com>2016-02-18 15:48:31 +0000
commit305a164e8b1094a041373ab9808aedcf4c76a1b6 (patch)
treee25c77cfab704d4fa5764a12ffb26d83b2e58876 /vcl/source/control/spinfld.cxx
parent473b03d1a4b7cdd72551a9039f6cc76a808cce58 (diff)
StyleSettingsOptions::SpinArrow is not set by anyone
Tragically this means the loss of a OS/2 comment Change-Id: Ia3f7b0a840e6b73cf4fae5f98dd4cf97d4e7b87c
Diffstat (limited to 'vcl/source/control/spinfld.cxx')
-rw-r--r--vcl/source/control/spinfld.cxx30
1 files changed, 7 insertions, 23 deletions
diff --git a/vcl/source/control/spinfld.cxx b/vcl/source/control/spinfld.cxx
index 59208e32374c..032bdc163637 100644
--- a/vcl/source/control/spinfld.cxx
+++ b/vcl/source/control/spinfld.cxx
@@ -201,33 +201,15 @@ void ImplDrawSpinButton(vcl::RenderContext& rRenderContext, vcl::Window* pWindow
SymbolType eType1, eType2;
- const StyleSettings& rStyleSettings = rRenderContext.GetSettings().GetStyleSettings();
- if ( rStyleSettings.GetOptions() & StyleSettingsOptions::SpinArrow )
+ if ( bHorz )
{
- // arrows are only use in OS/2 look
- if ( bHorz )
- {
- eType1 = bMirrorHorz ? SymbolType::ARROW_RIGHT : SymbolType::ARROW_LEFT;
- eType2 = bMirrorHorz ? SymbolType::ARROW_LEFT : SymbolType::ARROW_RIGHT;
- }
- else
- {
- eType1 = SymbolType::ARROW_UP;
- eType2 = SymbolType::ARROW_DOWN;
- }
+ eType1 = bMirrorHorz ? SymbolType::SPIN_RIGHT : SymbolType::SPIN_LEFT;
+ eType2 = bMirrorHorz ? SymbolType::SPIN_LEFT : SymbolType::SPIN_RIGHT;
}
else
{
- if ( bHorz )
- {
- eType1 = bMirrorHorz ? SymbolType::SPIN_RIGHT : SymbolType::SPIN_LEFT;
- eType2 = bMirrorHorz ? SymbolType::SPIN_LEFT : SymbolType::SPIN_RIGHT;
- }
- else
- {
- eType1 = SymbolType::SPIN_UP;
- eType2 = SymbolType::SPIN_DOWN;
- }
+ eType1 = SymbolType::SPIN_UP;
+ eType2 = SymbolType::SPIN_DOWN;
}
DrawButtonFlags nStyle = DrawButtonFlags::NoLeftLightBorder;
@@ -283,6 +265,8 @@ void ImplDrawSpinButton(vcl::RenderContext& rRenderContext, vcl::Window* pWindow
aLowRect.Top()++;
}
+ const StyleSettings& rStyleSettings = rRenderContext.GetSettings().GetStyleSettings();
+
DrawSymbolFlags nSymStyle = DrawSymbolFlags::NONE;
if (!bUpperEnabled)
nSymStyle |= DrawSymbolFlags::Disable;