Fix scope in 4c077010a
This commit is contained in:
parent
d11d8b8a96
commit
f52f23b12d
@ -434,10 +434,9 @@ TemplateManager::save_template_desc ()
|
||||
XMLNode* desc = new XMLNode (X_("description"));
|
||||
XMLNode* dn = new XMLNode (X_("content"), desc_txt);
|
||||
desc->add_child_nocopy (*dn);
|
||||
tree.root()->add_child_nocopy (*desc);
|
||||
}
|
||||
|
||||
tree.root()->add_child_nocopy (*desc);
|
||||
|
||||
if (!tree.write ()) {
|
||||
error << string_compose(X_("Could not write to template file \"%1\"."), file_path) << endmsg;
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user