summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fb3263c)
raw | patch | inline | side by side (parent: fb3263c)
author | acspike <acspike@users.sourceforge.net> | |
Wed, 24 Jan 2007 04:03:19 +0000 (04:03 +0000) | ||
committer | acspike <acspike@users.sourceforge.net> | |
Wed, 24 Jan 2007 04:03:19 +0000 (04:03 +0000) |
src/extension/effect.cpp | patch | blob | history |
index 041ec4f536097abc8e3a5e2eba8bd7cf1ff1a8e8..1fef1a9db9f0f8032099dd84a45504417cf13636 100644 (file)
--- a/src/extension/effect.cpp
+++ b/src/extension/effect.cpp
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);
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);