diff options
-rw-r--r-- | vcl/win/window/salframe.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/win/window/salframe.cxx b/vcl/win/window/salframe.cxx index f15a4f23e693..8c43b8448d93 100644 --- a/vcl/win/window/salframe.cxx +++ b/vcl/win/window/salframe.cxx @@ -2683,7 +2683,8 @@ void WinSalFrame::UpdateSettings( AllSettings& rSettings ) aStyleSettings.SetInactiveTabColor( ImplWinColorToSal( color ) ); CloseThemeData(hTheme); - if (hTheme = OpenThemeData(mhWnd, L"Textstyle")) + hTheme = OpenThemeData(mhWnd, L"Textstyle"); + if (hTheme) { GetThemeColor(hTheme, TEXT_HYPERLINKTEXT, TS_HYPERLINK_NORMAL, TMT_TEXTCOLOR, &color); aStyleSettings.SetLinkColor(ImplWinColorToSal(color)); |