From 0f4e827493bfb17ade1d1b6e1f98527b35a44afa Mon Sep 17 00:00:00 2001 From: Jabiertxof Date: Mon, 22 Oct 2018 13:51:57 +0200 Subject: Fix assert when removing LPE Definition --- src/object/sp-object.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/object/sp-object.cpp') diff --git a/src/object/sp-object.cpp b/src/object/sp-object.cpp index 7c6b6c28d..07c82cbd5 100644 --- a/src/object/sp-object.cpp +++ b/src/object/sp-object.cpp @@ -1193,10 +1193,10 @@ void SPObject::requestDisplayUpdate(unsigned int flags) * don't need to set CHILD_MODIFIED on our ancestors because it's already been done. */ if (already_propagated) { - if (parent) { - parent->requestDisplayUpdate(SP_OBJECT_CHILD_MODIFIED_FLAG); - } else { - if(this->document) { + if(this->document) { + if (parent) { + parent->requestDisplayUpdate(SP_OBJECT_CHILD_MODIFIED_FLAG); + } else { this->document->requestModified(); } } -- cgit v1.2.3