From 0ad75a51db11e2f3ae39f2d8a9b50430d69f01fd Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Sat, 6 Mar 2010 18:44:07 +0000 Subject: [PATCH] svg can be null; patch by Nikita Melnichenko CCBUG:229668 svn path=/trunk/KDE/kdelibs/; revision=1100082 --- widgets/svgwidget.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/widgets/svgwidget.cpp b/widgets/svgwidget.cpp index 72f381b4a..90cf670ad 100644 --- a/widgets/svgwidget.cpp +++ b/widgets/svgwidget.cpp @@ -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(); }