diff options
| author | Jabier Arraiza <jabier.arraiza@marker.es> | 2018-09-29 17:38:18 +0000 |
|---|---|---|
| committer | Jabier Arraiza <jabier.arraiza@marker.es> | 2018-09-29 17:38:18 +0000 |
| commit | b5b69ed38101efb51632b9c7ad4a25a5b13ca98c (patch) | |
| tree | d9abc106c62b06bdf5fd422317b08b3288475b0b /src/object/sp-object.cpp | |
| parent | CI/AppVeyor: Escape from DLL hell (diff) | |
| download | inkscape-b5b69ed38101efb51632b9c7ad4a25a5b13ca98c.tar.gz inkscape-b5b69ed38101efb51632b9c7ad4a25a5b13ca98c.zip | |
Fix for bug: #1791784 LPE path effect undo does not work
Diffstat (limited to 'src/object/sp-object.cpp')
| -rw-r--r-- | src/object/sp-object.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/object/sp-object.cpp b/src/object/sp-object.cpp index c76196d98..93a3f131a 100644 --- a/src/object/sp-object.cpp +++ b/src/object/sp-object.cpp @@ -1200,9 +1200,10 @@ void SPObject::requestDisplayUpdate(unsigned int flags) #endif bool already_propagated = (!(this->uflags & (SP_OBJECT_MODIFIED_FLAG | SP_OBJECT_CHILD_MODIFIED_FLAG))); - - this->uflags |= flags; - + //https://stackoverflow.com/a/7841333 + if ((this->uflags & flags) != flags ) { + this->uflags |= flags; + } /* If requestModified has already been called on this object or one of its children, then we * don't need to set CHILD_MODIFIED on our ancestors because it's already been done. */ @@ -1210,7 +1211,9 @@ void SPObject::requestDisplayUpdate(unsigned int flags) if (parent) { parent->requestDisplayUpdate(SP_OBJECT_CHILD_MODIFIED_FLAG); } else { - document->requestModified(); + if(this->document) { + this->document->requestModified(); + } } } |
