aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/items/qsgimage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/items/qsgimage.cpp')
-rw-r--r--src/declarative/items/qsgimage.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/declarative/items/qsgimage.cpp b/src/declarative/items/qsgimage.cpp
index 8cf85997cb..92b454b695 100644
--- a/src/declarative/items/qsgimage.cpp
+++ b/src/declarative/items/qsgimage.cpp
@@ -704,6 +704,10 @@ void QSGImage::pixmapChange()
QSGImageBase::pixmapChange();
updatePaintedGeometry();
d->pixmapChanged = true;
+
+ // Make sure we update the texture provider when the image has changed.
+ if (d->provider)
+ update();
}
QSGImage::VAlignment QSGImage::verticalAlignment() const