summaryrefslogtreecommitdiffstats
path: root/src/sp-text.cpp
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2010-07-28 09:12:57 +0000
committertavmjong-free <tavmjong@free.fr>2010-07-28 09:12:57 +0000
commitbf84950712fccc32dc0030edb9d2a04b6ec9a68d (patch)
tree64bacd7f4d2a5a6ac20b21e25605e0a7940f137b /src/sp-text.cpp
parentCreate just one path instead of hundreds. (diff)
downloadinkscape-bf84950712fccc32dc0030edb9d2a04b6ec9a68d.tar.gz
inkscape-bf84950712fccc32dc0030edb9d2a04b6ec9a68d.zip
Fix rendering of "plain" SVG text.
(bzr r9665)
Diffstat (limited to 'src/sp-text.cpp')
-rw-r--r--src/sp-text.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp-text.cpp b/src/sp-text.cpp
index bae625f58..36f67aa88 100644
--- a/src/sp-text.cpp
+++ b/src/sp-text.cpp
@@ -528,7 +528,7 @@ unsigned SPText::_buildLayoutInput(SPObject *root, Inkscape::Text::Layout::Optio
}
else if (SP_IS_TSPAN(root)) {
SPTSpan *tspan = SP_TSPAN(root);
- // x, y attributes are stripped from some tspans as we do our own line layout
+ // x, y attributes are stripped from some tspans marked with role="line" as we do our own line layout.
// This should be checked carefully, as it can undo line layout in imported SVG files.
bool use_xy = !in_textpath && (tspan->role == SP_TSPAN_ROLE_UNSPECIFIED || !tspan->attributes.singleXYCoordinates());
tspan->attributes.mergeInto(&optional_attrs, parent_optional_attrs, parent_attrs_offset, use_xy, true);