only emit repaintNeeded if there was actually a change

This commit is contained in:
Aaron Seigo 2011-05-20 08:13:24 +02:00
parent 7f4bd841e2
commit 9da79a0840

View File

@ -784,9 +784,10 @@ void Svg::setImagePath(const QString &svgFilePath)
return;
}
d->setImagePath(svgFilePath);
if (d->setImagePath(svgFilePath)) {
//kDebug() << "repaintNeeded";
emit repaintNeeded();
}
}
QString Svg::imagePath() const