Fix title font of Vista-style wizards.
Reverse invalid check. Task-number: QTBUG-41878 Change-Id: I05015407e5cfad94aca65594962b897a1d0a0cbd Reviewed-by: Alessandro Portale <alessandro.portale@digia.com>bb10
parent
ed0245e145
commit
c30ccb0ecd
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue