Commit 6a4223ec authored by Volker Krause's avatar Volker Krause
Browse files

Check for null images before attempting to scale them

This is mainly to silence runtime warnings related to that, doesn't
actually behavior.
parent 1fb321b0
Pipeline #56014 passed with stages
in 13 minutes and 7 seconds
......@@ -208,7 +208,7 @@ QImage PdfImage::image() const
const auto img = d->load();
if (d->m_width != d->m_sourceWidth || d->m_height != d->m_sourceHeight) {
if (!img.isNull() && (d->m_width != d->m_sourceWidth || d->m_height != d->m_sourceHeight)) {
return img.scaled(d->m_width, d->m_height);
return img;
Markdown is supported
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