summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOBATA Akio <obache@wizdas.com>2020-08-04 18:15:08 +0900
committerSlávek Banko <slavek.banko@axis.cz>2021-02-02 01:55:52 +0100
commita35e51a4fde9d292e94e824454d5d589f22b0f19 (patch)
treebec5fb9052e2c62cf350e43b186b31ccade169f6
parent82d40179adeb02d3012e10c45ffde20e0e60fcd1 (diff)
downloadqt3-a35e51a4fde9d292e94e824454d5d589f22b0f19.tar.gz
qt3-a35e51a4fde9d292e94e824454d5d589f22b0f19.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 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<QFontEngineXft *>(engine)->font();
}