From 8704c62dce2ad2218b77d4f74c20b39724aeca26 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 2bb65a4f0..eed239ebe 100644 --- a/src/kernel/qfont_x11.cpp +++ b/src/kernel/qfont_x11.cpp @@ -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(engine)->font(); } -- cgit v1.2.1