Commit 25af2926 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Fix compile warning with MSVC

parent a30fb083
......@@ -1034,8 +1034,9 @@ void KoShape::setRunThrough(short int runThrough)
void KoShape::setVisible(bool on)
{
Q_D(KoShape);
if (d->visible == on) return;
d->visible = on;
int _on = (on ? 1 : 0);
if (d->visible == _on) return;
d->visible = _on;
}
bool KoShape::isVisible(bool recursive) const
......
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