Commit af217e67 authored by Konstantin Ritt's avatar Konstantin Ritt
Browse files

Minor optimization to QWidgetPrivate::setFont_helper()


There is no sense in comparing fonts with different resolve_mask-s.

Change-Id: Icfdaf494fce8a59b7138d96fdf7354cc0514ca6a
Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Showing with 1 addition and 1 deletion
......@@ -358,7 +358,7 @@ public:
void updateFont(const QFont &);
inline void setFont_helper(const QFont &font) {
if (data.fnt == font && data.fnt.resolve() == font.resolve())
if (data.fnt.resolve() == font.resolve() && data.fnt == font)
return;
updateFont(font);
}
......
Supports Markdown
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