diff options
| author | Aaron Spike <aaron@ekips.org> | 2007-01-24 04:03:19 +0000 |
|---|---|---|
| committer | acspike <acspike@users.sourceforge.net> | 2007-01-24 04:03:19 +0000 |
| commit | 0acd145ba40f905806b734728fd7a53cedb6a712 (patch) | |
| tree | e19a71a1772b7b681d3e6b7632a7e76d2b97c7d2 /src/extension/effect.cpp | |
| parent | heh, bool to begin with (diff) | |
| download | inkscape-0acd145ba40f905806b734728fd7a53cedb6a712.tar.gz inkscape-0acd145ba40f905806b734728fd7a53cedb6a712.zip | |
another createElement instead of repr_new
(bzr r2270)
Diffstat (limited to 'src/extension/effect.cpp')
| -rw-r--r-- | src/extension/effect.cpp | 8 |
1 files 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); |
