diff options
| author | Stephen Silver <sasilver@yahoo.com> | 2008-07-08 13:00:20 +0000 |
|---|---|---|
| committer | sasilver <sasilver@users.sourceforge.net> | 2008-07-08 13:00:20 +0000 |
| commit | 5d11a5a6e78890682852e2b2f492853cb514c196 (patch) | |
| tree | 4e579612753da38d20d3fc02db1a0667b4897fa7 /src | |
| parent | disable motion hints for calligraphy to avoid confusion (diff) | |
| download | inkscape-5d11a5a6e78890682852e2b2f492853cb514c196.tar.gz inkscape-5d11a5a6e78890682852e2b2f492853cb514c196.zip | |
Patch from codedread. Prevents rendering of title/desc/metadata elements in text (fixes bug 238093).
(bzr r6226)
Diffstat (limited to 'src')
| -rw-r--r-- | src/sp-flowtext.cpp | 2 | ||||
| -rw-r--r-- | src/sp-text.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/sp-flowtext.cpp b/src/sp-flowtext.cpp index 596d47ba4..8621a27b5 100644 --- a/src/sp-flowtext.cpp +++ b/src/sp-flowtext.cpp @@ -463,7 +463,7 @@ void SPFlowtext::_buildLayoutInput(SPObject *root, Shape const *exclusion_shape, layout.appendWrapShape(&shapes->back()); } } - else if (!SP_IS_FLOWREGIONEXCLUDE(child)) + else if (!SP_IS_FLOWREGIONEXCLUDE(child) && !sp_repr_is_meta_element(child->repr)) _buildLayoutInput(child, exclusion_shape, shapes, pending_line_break_object); } diff --git a/src/sp-text.cpp b/src/sp-text.cpp index 8e4b732bc..0390df6bf 100644 --- a/src/sp-text.cpp +++ b/src/sp-text.cpp @@ -553,7 +553,7 @@ unsigned SPText::_buildLayoutInput(SPObject *root, Inkscape::Text::Layout::Optio Glib::ustring const &string = SP_STRING(child)->string; layout.appendText(string, root->style, child, &optional_attrs, child_attrs_offset + length); length += string.length(); - } else { + } else if (!sp_repr_is_meta_element(child->repr)) { length += _buildLayoutInput(child, optional_attrs, child_attrs_offset + length, in_textpath); } } |
