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:56:08 +0100
commitd5d6fa9adba9770cd5dcec85aea15999cc816e7c (patch)
tree9924e306d60850b58469bc63e953ba256277bc3d
parentf013b070a1486c81cc02ddbe3e6375dd23d984cb (diff)
downloadqt3-d5d6fa9adba9770cd5dcec85aea15999cc816e7c.tar.gz
qt3-d5d6fa9adba9770cd5dcec85aea15999cc816e7c.zip
Fix `qt_xft_handle` to work as expected
Signed-off-by: OBATA Akio <obache@wizdas.com> (cherry picked from commit a35e51a4fde9d292e94e824454d5d589f22b0f19)
-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();
}