diff options
| author | Krzysztof Kosi??ski <tweenk.pl@gmail.com> | 2014-03-05 22:05:45 +0000 |
|---|---|---|
| committer | Krzysztof KosiĆski <tweenk.pl@gmail.com> | 2014-03-05 22:05:45 +0000 |
| commit | d186420240c494a77ef55bfc4f725bfb85bf2b8b (patch) | |
| tree | 06bdeecfb7e931b0c582afd137e9b6854c18769a /src/sp-image.cpp | |
| parent | Dutch translation update (diff) | |
| download | inkscape-d186420240c494a77ef55bfc4f725bfb85bf2b8b.tar.gz inkscape-d186420240c494a77ef55bfc4f725bfb85bf2b8b.zip | |
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)
Diffstat (limited to 'src/sp-image.cpp')
| -rw-r--r-- | src/sp-image.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
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); } } } |
