vcl/win/window/salframe.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 5e0748d5bc12f789f9228d514294f8dcb0484b09 Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Fri Feb 3 15:25:33 2023 +0100 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Fri Feb 3 15:37:32 2023 +0000 Avoid clang-cl -Werror,-Wparentheses (assuming 9274d41bd72c5310491d81c6d8d938e44ed9d223 "tdf#148085 get a more readable hyperlink color under windows dark mode" didn't introduce a = vs. == typo) Change-Id: Ifd72029836726a804bcb0e3b5441aa7943705a76 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146543 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sberg...@redhat.com> 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));