summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOBATA Akio <obache@wizdas.com>2020-08-04 18:15:08 +0900
committerTDE Gitea <gitea@mirror.git.trinitydesktop.org>2020-08-08 05:51:18 +0000
commit8704c62dce2ad2218b77d4f74c20b39724aeca26 (patch)
treea03bc0c8f55c8aac112ee7c51c86521b8333271a
parentac500135785f34eebe8d9c077208a5dd0b494929 (diff)
downloadtqt3-8704c62dce2ad2218b77d4f74c20b39724aeca26.tar.gz
tqt3-8704c62dce2ad2218b77d4f74c20b39724aeca26.zip
Fix `qt_xft_handle` to work as expected
Signed-off-by: OBATA Akio <obache@wizdas.com>
-rw-r--r--src/kernel/qfont_x11.cpp2
1 files changed, 1 insertions, 1 deletions
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<TQFontEngineXft *>(engine)->font();
}