From a35e51a4fde9d292e94e824454d5d589f22b0f19 Mon Sep 17 00:00:00 2001 From: OBATA Akio Date: Tue, 4 Aug 2020 18:15:08 +0900 Subject: Fix `qt_xft_handle` to work as expected Signed-off-by: OBATA Akio --- src/kernel/qfont_x11.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kernel/qfont_x11.cpp b/src/kernel/qfont_x11.cpp index fea0b58..c45a265 100644 --- a/src/kernel/qfont_x11.cpp +++ b/src/kernel/qfont_x11.cpp @@ -75,7 +75,7 @@ Q_EXPORT bool qt_has_xft = FALSE; Qt::HANDLE qt_xft_handle(const QFont &font) { QFontEngine *engine = font.d->engineForScript( QFontPrivate::defaultScript ); - if (!engine->type() == QFontEngine::Xft) + if (engine->type() != QFontEngine::Xft) return 0; return (long)static_cast(engine)->font(); } -- cgit v1.2.1