From 5008d77105fc807f0530b3beadb98a941c91c8a0 Mon Sep 17 00:00:00 2001 From: Massimiliano Alberti <821344+xanatos@users.noreply.github.com> Date: Thu, 13 Feb 2025 20:45:52 +0100 Subject: [PATCH] [Zoomit]Fix warning C4706 and related error C2220 (#37283) --- src/modules/ZoomIt/ZoomIt/Zoomit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/ZoomIt/ZoomIt/Zoomit.cpp b/src/modules/ZoomIt/ZoomIt/Zoomit.cpp index d198616bbc..f8d1fd3a07 100644 --- a/src/modules/ZoomIt/ZoomIt/Zoomit.cpp +++ b/src/modules/ZoomIt/ZoomIt/Zoomit.cpp @@ -1820,7 +1820,7 @@ INT_PTR CALLBACK OptionsTabProc( HWND hDlg, UINT message, break; case WM_PAINT: - if( (hTextPreview = GetDlgItem( hDlg, IDC_TEXT_FONT ))) { + if( (hTextPreview = GetDlgItem( hDlg, IDC_TEXT_FONT )) != 0 ) { // 16-pt preview LOGFONT _lf = g_LogFont;