diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-23 14:54:34 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-26 07:26:54 +0100 |
commit | 84d9785a04a1d4929505ef1d7958e0420eec43b6 (patch) | |
tree | 6c95e3f234e1efe21d762d2bf2ba5b9e26a3aea4 /vcl/source/edit | |
parent | 761546e088dcccf3aa66c3f5c4853f110b93770f (diff) |
remove unused DrawFlags enum values
Change-Id: I3f313dfa085612d805ea54352793a3fb0356b986
Reviewed-on: https://gerrit.libreoffice.org/63970
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/edit')
-rw-r--r-- | vcl/source/edit/vclmedit.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/edit/vclmedit.cxx b/vcl/source/edit/vclmedit.cxx index 10c6f20c0bb9..263d8231c715 100644 --- a/vcl/source/edit/vclmedit.cxx +++ b/vcl/source/edit/vclmedit.cxx @@ -1338,8 +1338,8 @@ void VclMultiLineEdit::Draw( OutputDevice* pDev, const Point& rPos, const Size& // Border/Background pDev->SetLineColor(); pDev->SetFillColor(); - bool bBorder = !(nFlags & DrawFlags::NoBorder ) && (GetStyle() & WB_BORDER); - bool bBackground = !(nFlags & DrawFlags::NoBackground) && IsControlBackground(); + bool bBorder = (GetStyle() & WB_BORDER); + bool bBackground = IsControlBackground(); if ( bBorder || bBackground ) { tools::Rectangle aRect( aPos, aSize ); @@ -1360,7 +1360,7 @@ void VclMultiLineEdit::Draw( OutputDevice* pDev, const Point& rPos, const Size& pDev->SetTextColor( COL_BLACK ); else { - if ( !(nFlags & DrawFlags::NoDisable ) && !IsEnabled() ) + if ( !IsEnabled() ) { const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings(); pDev->SetTextColor( rStyleSettings.GetDisableColor() ); |