summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/control/fixed.cxx6
-rw-r--r--vcl/source/window/dialog.cxx2
2 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/control/fixed.cxx b/vcl/source/control/fixed.cxx
index 0164ce85cab8..ce01670c879a 100644
--- a/vcl/source/control/fixed.cxx
+++ b/vcl/source/control/fixed.cxx
@@ -37,7 +37,7 @@
WB_LEFT | WB_CENTER | WB_RIGHT | \
WB_TOP | WB_VCENTER | WB_BOTTOM | \
WB_WORDBREAK | WB_NOLABEL | \
- WB_INFO | WB_PATHELLIPSIS)
+ WB_PATHELLIPSIS)
#define FIXEDLINE_VIEW_STYLE (WB_3DLOOK | WB_NOLABEL)
#define FIXEDBITMAP_VIEW_STYLE (WB_3DLOOK | \
WB_LEFT | WB_CENTER | WB_RIGHT | \
@@ -96,12 +96,12 @@ WinBits FixedText::ImplInitStyle( WinBits nStyle )
const vcl::Font& FixedText::GetCanonicalFont( const StyleSettings& _rStyle ) const
{
- return ( GetStyle() & WB_INFO ) ? _rStyle.GetInfoFont() : _rStyle.GetLabelFont();
+ return _rStyle.GetLabelFont();
}
const Color& FixedText::GetCanonicalTextColor( const StyleSettings& _rStyle ) const
{
- return ( GetStyle() & WB_INFO ) ? _rStyle.GetInfoTextColor() : _rStyle.GetLabelTextColor();
+ return _rStyle.GetLabelTextColor();
}
FixedText::FixedText( vcl::Window* pParent, WinBits nStyle )
diff --git a/vcl/source/window/dialog.cxx b/vcl/source/window/dialog.cxx
index 9b60717c6228..5884a7316c40 100644
--- a/vcl/source/window/dialog.cxx
+++ b/vcl/source/window/dialog.cxx
@@ -96,7 +96,7 @@ static bool ImplIsMnemonicCtrl( vcl::Window* pWindow )
return true;
//This is the legacy pre-layout logic which we retain
//until we can be sure we can remove it
- if ( pWindow->GetStyle() & (WB_INFO | WB_NOLABEL) )
+ if (pWindow->GetStyle() & WB_NOLABEL)
return false;
vcl::Window* pNextWindow = pWindow->GetWindow( GetWindowType::Next );
if ( !pNextWindow )