summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2012-02-21 19:48:28 +0100
committerThomas Arnhold <thomas@arnhold.org>2012-02-21 20:57:01 +0100
commit0f42e7c83369d8e13e4770ed4ad18d50a1c0bd5b (patch)
treebb8302764472ec641a8d51cb1f2c48feee09469d /vcl
parent5f78d1d9ac9850f8a9fd25d5189b226e90a49bb2 (diff)
WaE: duplicateBranch
Diffstat (limited to 'vcl')
-rw-r--r--vcl/win/source/window/salframe.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/vcl/win/source/window/salframe.cxx b/vcl/win/source/window/salframe.cxx
index 55630a8f451a..5e82f5a2139c 100644
--- a/vcl/win/source/window/salframe.cxx
+++ b/vcl/win/source/window/salframe.cxx
@@ -4745,10 +4745,7 @@ static int ImplDrawItem(HWND, WPARAM wParam, LPARAM lParam )
clrPrevText = SetTextColor( pDI->hDC, GetSysColor( fSelected ? COLOR_HIGHLIGHTTEXT : COLOR_MENUTEXT ) );
DWORD colBackground = GetSysColor( fSelected ? COLOR_HIGHLIGHT : COLOR_MENU );
- if ( fSelected )
- clrPrevBkgnd = SetBkColor( pDI->hDC, colBackground );
- else
- clrPrevBkgnd = SetBkColor( pDI->hDC, colBackground );
+ clrPrevBkgnd = SetBkColor( pDI->hDC, colBackground );
hbrOld = (HBRUSH)SelectObject( pDI->hDC, CreateSolidBrush( GetBkColor( pDI->hDC ) ) );