From 509647257f1bb1cd596124916fd08f6cf0855d1c Mon Sep 17 00:00:00 2001 From: acspike Date: Wed, 24 Jan 2007 04:03:19 +0000 Subject: [PATCH] another createElement instead of repr_new --- src/extension/effect.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/extension/effect.cpp b/src/extension/effect.cpp index 041ec4f53..1fef1a9db 100644 --- a/src/extension/effect.cpp +++ b/src/extension/effect.cpp @@ -72,7 +72,7 @@ Effect::Effect (Inkscape::XML::Node * in_repr, Implementation::Implementation * if (_effects_list != NULL) { Inkscape::XML::Document *xml_doc; - xml_doc = _effects_list->parent()->document(); + xml_doc = _effects_list->document(); _menu_node = xml_doc->createElement("verb"); _menu_node->setAttribute("verb-id", this->get_id(), false); @@ -105,8 +105,10 @@ Effect::merge_menu (Inkscape::XML::Node * base, gchar const * menuname = patern->attribute("name"); if (menuname == NULL) menuname = patern->attribute("_name"); if (menuname == NULL) return; - - tomerge = sp_repr_new("submenu"); + + Inkscape::XML::Document *xml_doc; + xml_doc = base->document(); + tomerge = xml_doc->createElement("submenu"); tomerge->setAttribute("name", menuname, false); mergename = _(menuname); -- 2.30.2