summaryrefslogtreecommitdiffstats
path: root/src/sp-tag-use.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp-tag-use.cpp')
-rw-r--r--src/sp-tag-use.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sp-tag-use.cpp b/src/sp-tag-use.cpp
index ffcfcee3e..5851598f2 100644
--- a/src/sp-tag-use.cpp
+++ b/src/sp-tag-use.cpp
@@ -175,6 +175,7 @@ SPTagUse::href_changed(SPObject */*old_ref*/, SPObject */*ref*/)
SPObject* child_ = SPFactory::instance().createObject(typeString);
if (child_) {
+ child = child_;
attach(child_, lastChild());
sp_object_unref(child_, 0);
child_->invoke_build(this->document, childrepr, TRUE);