Fix `qt_xft_handle` to work as expected

Signed-off-by: OBATA Akio <obache@wizdas.com>
(cherry picked from commit 8704c62dce)
r14.0.x
OBATA Akio 4 years ago committed by Michele Calgaro
parent 8e2cfe9a0a
commit 578712826b
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -75,7 +75,7 @@ Q_EXPORT bool tqt_has_xft = FALSE;
TQt::HANDLE qt_xft_handle(const TQFont &font)
{
TQFontEngine *engine = font.d->engineForScript( TQFontPrivate::defaultScript );
if (!engine->type() == TQFontEngine::Xft)
if (engine->type() != TQFontEngine::Xft)
return 0;
return (long)static_cast<TQFontEngineXft *>(engine)->font();
}

Loading…
Cancel
Save