diff options
| author | Nicolas Dufour <nicoduf@yahoo.fr> | 2014-01-04 14:25:02 +0000 |
|---|---|---|
| committer | JazzyNico <nicoduf@yahoo.fr> | 2014-01-04 14:25:02 +0000 |
| commit | d46d1fbfa2743ef525908dce92880d7d551932b9 (patch) | |
| tree | 4b9bc683e889bf52331227ff0f405ca592b786ee | |
| parent | Fixing errors and warnings in the debug code. (diff) | |
| download | inkscape-d46d1fbfa2743ef525908dce92880d7d551932b9.tar.gz inkscape-d46d1fbfa2743ef525908dce92880d7d551932b9.zip | |
Fix for Bug #1265556 (plain svg export is broken for filter).
Fixed bugs:
- https://launchpad.net/bugs/1265556
(bzr r12879)
| -rw-r--r-- | src/sp-filter.cpp | 2 | ||||
| -rw-r--r-- | src/sp-font.cpp | 2 | ||||
| -rw-r--r-- | src/sp-text.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/sp-filter.cpp b/src/sp-filter.cpp index 9d45c92fc..c3e7d217e 100644 --- a/src/sp-filter.cpp +++ b/src/sp-filter.cpp @@ -220,7 +220,7 @@ Inkscape::XML::Node* SPFilter::write(Inkscape::XML::Document *doc, Inkscape::XML // Original from sp-item-group.cpp if (flags & SP_OBJECT_WRITE_BUILD) { if (!repr) { - repr = doc->createElement("svg:this"); + repr = doc->createElement("svg:filter"); } GSList *l = NULL; diff --git a/src/sp-font.cpp b/src/sp-font.cpp index 4ac3278d7..62cf521d3 100644 --- a/src/sp-font.cpp +++ b/src/sp-font.cpp @@ -179,7 +179,7 @@ void SPFont::update(SPCtx *ctx, guint flags) { Inkscape::XML::Node* SPFont::write(Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, guint flags) { if ((flags & SP_OBJECT_WRITE_BUILD) && !repr) { - repr = xml_doc->createElement("svg:this"); + repr = xml_doc->createElement("svg:font"); } sp_repr_set_svg_double(repr, "horiz-origin-x", this->horiz_origin_x); diff --git a/src/sp-text.cpp b/src/sp-text.cpp index d2f433eba..ef46e890f 100644 --- a/src/sp-text.cpp +++ b/src/sp-text.cpp @@ -235,7 +235,7 @@ void SPText::modified(guint flags) { Inkscape::XML::Node *SPText::write(Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, guint flags) { if (flags & SP_OBJECT_WRITE_BUILD) { if (!repr) { - repr = xml_doc->createElement("svg:this"); + repr = xml_doc->createElement("svg:text"); } GSList *l = NULL; |
