summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 2bb65a4f0..eed239ebe 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();
}