Fix GCC warning Wint-in-bool-context.

--HG--
branch : release
This commit is contained in:
Roman Telezhynskyi 2018-08-29 23:35:36 +03:00
parent b8acb767df
commit 4f18aea56f

View File

@ -71,7 +71,7 @@ void PaintWithFixItemHighlightSelected(Item *item, QPainter *painter, const QSty
QStyleOptionGraphicsItem myoption = (*option);
if (myoption.state & QStyle::State_Selected)
{
myoption.state &= !QStyle::State_Selected;
myoption.state &= ~QStyle::State_Selected;
}
item->Parent::paint(painter, &myoption, widget);