summaryrefslogtreecommitdiffstats
path: root/src/kernel/qfont_x11.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/qfont_x11.cpp')
-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();
}