diff options
author | OBATA Akio <[email protected]> | 2020-08-04 18:15:08 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2020-08-08 14:52:18 +0900 |
commit | 578712826b2a161f3f354d7cfe0a066d0014f5dd (patch) | |
tree | 0c60c8cf15688d3b9d902a0fa278b3b5c5ca0a0f | |
parent | 8e2cfe9a0a9f89fbbc7a651d16bbc7651dce154b (diff) | |
download | tqt3-578712826b2a161f3f354d7cfe0a066d0014f5dd.tar.gz tqt3-578712826b2a161f3f354d7cfe0a066d0014f5dd.zip |
Fix `qt_xft_handle` to work as expected
Signed-off-by: OBATA Akio <[email protected]>
(cherry picked from commit 8704c62dce2ad2218b77d4f74c20b39724aeca26)
-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 9baa6a5cf..e183b03ee 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(); } |