diff options
-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 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(); } |