From c30ccb0ecdfa08fbadfa8bd40a67a0efb6eaadde Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Wed, 15 Oct 2014 14:57:45 +0200 Subject: Fix title font of Vista-style wizards. Reverse invalid check. Task-number: QTBUG-41878 Change-Id: I05015407e5cfad94aca65594962b897a1d0a0cbd Reviewed-by: Alessandro Portale --- src/widgets/dialogs/qwizard_win.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/widgets/dialogs/qwizard_win.cpp b/src/widgets/dialogs/qwizard_win.cpp index 6a09f9c273..69761473fc 100644 --- a/src/widgets/dialogs/qwizard_win.cpp +++ b/src/widgets/dialogs/qwizard_win.cpp @@ -653,10 +653,7 @@ HFONT QVistaHelper::getCaptionFont(HANDLE hTheme) { LOGFONT lf = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, { 0 } }; - if (!hTheme) - pGetThemeSysFont(hTheme, WIZ_TMT_CAPTIONFONT, &lf); - else - { + if (!hTheme || FAILED(pGetThemeSysFont(hTheme, WIZ_TMT_CAPTIONFONT, &lf))) { NONCLIENTMETRICS ncm; ncm.cbSize = sizeof(NONCLIENTMETRICS); SystemParametersInfo(SPI_GETNONCLIENTMETRICS, sizeof(NONCLIENTMETRICS), &ncm, false); -- cgit v1.2.3