diff options
Diffstat (limited to 'vcl/source/edit/vclmedit.cxx')
-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() ); |