summaryrefslogtreecommitdiffstats
path: root/src/sp-object.cpp
diff options
context:
space:
mode:
authorAdrian Boguszewski <adrbogus1@student.pg.gda.pl>2016-07-27 10:19:03 +0000
committerAdrian Boguszewski <adrbogus1@student.pg.gda.pl>2016-07-27 10:19:03 +0000
commitff4fbbc93f67afd6cbf851691833a50d6c76b350 (patch)
tree3bea98560af71f702f0274faf35754e28e042a2d /src/sp-object.cpp
parentChanged coding style (diff)
downloadinkscape-ff4fbbc93f67afd6cbf851691833a50d6c76b350.tar.gz
inkscape-ff4fbbc93f67afd6cbf851691833a50d6c76b350.zip
Renamed some functions, fixed tests
(bzr r14954.1.28)
Diffstat (limited to 'src/sp-object.cpp')
-rw-r--r--src/sp-object.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sp-object.cpp b/src/sp-object.cpp
index ccd70f4cb..27c788d75 100644
--- a/src/sp-object.cpp
+++ b/src/sp-object.cpp
@@ -151,6 +151,9 @@ SPObject::~SPObject() {
sp_object_unref(this->_successor, NULL);
this->_successor = NULL;
}
+ if (parent) {
+ parent->children.erase(parent->children.iterator_to(*this));
+ }
if( style == NULL ) {
// style pointer could be NULL if unreffed too many times.