From d186420240c494a77ef55bfc4f725bfb85bf2b8b Mon Sep 17 00:00:00 2001 From: Krzysztof Kosi??ski Date: Wed, 5 Mar 2014 23:05:45 +0100 Subject: When an externally linked image is modified, mark it for update instead of directly calling update() with a bogus ctx parameter. Prevents crash and fixes LP Bug #1278571. Fixed bugs: - https://launchpad.net/bugs/1278571 (bzr r13117) --- src/sp-image.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/sp-image.cpp') diff --git a/src/sp-image.cpp b/src/sp-image.cpp index 2c20331a9..cb8ede2b2 100644 --- a/src/sp-image.cpp +++ b/src/sp-image.cpp @@ -813,9 +813,7 @@ void sp_image_refresh_if_outdated( SPImage* image ) if ( !val ) { // stat call worked. Check time now if ( st.st_mtime != image->pixbuf->modificationTime() ) { - SPCtx *ctx = 0; - unsigned int flags = SP_IMAGE_HREF_MODIFIED_FLAG; - image->update(ctx, flags); + image->requestDisplayUpdate(SP_OBJECT_MODIFIED_FLAG | SP_IMAGE_HREF_MODIFIED_FLAG); } } } -- cgit v1.2.3