diff --git a/svg.cpp b/svg.cpp index 27ae240cb..202643ccc 100644 --- a/svg.cpp +++ b/svg.cpp @@ -784,9 +784,10 @@ void Svg::setImagePath(const QString &svgFilePath) return; } - d->setImagePath(svgFilePath); - //kDebug() << "repaintNeeded"; - emit repaintNeeded(); + if (d->setImagePath(svgFilePath)) { + //kDebug() << "repaintNeeded"; + emit repaintNeeded(); + } } QString Svg::imagePath() const