Commit 3301cdd9 authored by Thorsten Zachmann's avatar Thorsten Zachmann

Repaint picture shape is after it is inserted

Be sure to trigger a repaint after a new image is inserted. This fixes
the problem that the image is not visible directly on insert in karbon.

BUG: 305548
parent d6862e32
......@@ -45,6 +45,8 @@ void LoadWaiter::setImageData(KJob *job)
if (qFuzzyCompare(m_pictureShape->size().width(), 50.0)) {
m_pictureShape->setSize(data->imageSize());
}
// trigger repaint as the userData was changed
m_pictureShape->update();
}
}
deleteLater();
......
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