diff options
Diffstat (limited to 'src/sp-text.cpp')
| -rw-r--r-- | src/sp-text.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sp-text.cpp b/src/sp-text.cpp index 0f21b59d1..bae625f58 100644 --- a/src/sp-text.cpp +++ b/src/sp-text.cpp @@ -528,6 +528,8 @@ 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 + // 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); } |
