Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 647a34d4 authored by Mariusz Glebocki's avatar Mariusz Glebocki Committed by Kurt Hindenburg

Compare floats in a reliable way

Reviewers: #konsole, hindenburg

Reviewed By: #konsole, hindenburg

Subscribers: hindenburg, konsole-devel

Tags: #konsole

Differential Revision: https://phabricator.kde.org/D19484
parent 7e55dcf1
......@@ -300,7 +300,7 @@ void TerminalDisplay::setVTFont(const QFont& f)
// QFontInfo::fixedPitch() appears to not match QFont::fixedPitch() - do not test it.
// related? https://bugreports.qt.io/browse/QTBUG-34082
if (fontInfo.family() != newFont.family()
|| fontInfo.pointSizeF() != newFont.pointSizeF()
|| !qFuzzyCompare(fontInfo.pointSizeF(), newFont.pointSizeF())
|| fontInfo.styleHint() != newFont.styleHint()
|| fontInfo.weight() != newFont.weight()
|| fontInfo.style() != newFont.style()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment