diff options
author | OBATA Akio <[email protected]> | 2020-08-04 18:15:08 +0900 |
---|---|---|
committer | TDE Gitea <[email protected]> | 2020-08-08 05:51:18 +0000 |
commit | 8704c62dce2ad2218b77d4f74c20b39724aeca26 (patch) | |
tree | a03bc0c8f55c8aac112ee7c51c86521b8333271a /src/kernel | |
parent | ac500135785f34eebe8d9c077208a5dd0b494929 (diff) | |
download | tqt3-8704c62dce2ad2218b77d4f74c20b39724aeca26.tar.gz tqt3-8704c62dce2ad2218b77d4f74c20b39724aeca26.zip |
Fix `qt_xft_handle` to work as expected
Signed-off-by: OBATA Akio <[email protected]>
Diffstat (limited to 'src/kernel')
-rw-r--r-- | src/kernel/qfont_x11.cpp | 2 |
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(); } |