Commit 40865d08 authored by Marcel Wiesweg's avatar Marcel Wiesweg
Browse files

d can be null. Add missing checks to avoid crash.

BUG: 274660
parent ec4fd96a
......@@ -117,7 +117,7 @@ void Image::setOriginalSize(const QSize& size)
QSize Image::originalSize() const
{
return d->originalSize;
return d ? d->originalSize : QSize();
}
ImageData Image::imageData()
......@@ -132,7 +132,7 @@ const ImageData Image::imageData() const
QImage Image::toQImage() const
{
return KFaceUtils::IplImage2QImage(d->image);
return d ? KFaceUtils::IplImage2QImage(d->image) : QImage();
}
} // namespace KFaceIface
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment