svg can be null; patch by Nikita Melnichenko

CCBUG:229668

svn path=/trunk/KDE/kdelibs/; revision=1100082
This commit is contained in:
Aaron J. Seigo 2010-03-06 18:44:07 +00:00
parent 48c6fcbe8e
commit 0ad75a51db

View File

@ -77,7 +77,9 @@ Svg *SvgWidget::svg() const
void SvgWidget::setElementID(const QString &elementID)
{
d->svg->setContainsMultipleImages(!elementID.isNull());
if (d->svg) {
d->svg->setContainsMultipleImages(!elementID.isNull());
}
d->elementID = elementID;
update();
}