only emit repaintNeeded if there was actually a change
This commit is contained in:
parent
7f4bd841e2
commit
9da79a0840
3
svg.cpp
3
svg.cpp
@ -784,9 +784,10 @@ void Svg::setImagePath(const QString &svgFilePath)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
d->setImagePath(svgFilePath);
|
if (d->setImagePath(svgFilePath)) {
|
||||||
//kDebug() << "repaintNeeded";
|
//kDebug() << "repaintNeeded";
|
||||||
emit repaintNeeded();
|
emit repaintNeeded();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
QString Svg::imagePath() const
|
QString Svg::imagePath() const
|
||||||
|
Loading…
Reference in New Issue
Block a user