diff options
Diffstat (limited to 'src/object/sp-tspan.cpp')
| -rw-r--r-- | src/object/sp-tspan.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/object/sp-tspan.cpp b/src/object/sp-tspan.cpp index cee3f7d37..bbd8818d6 100644 --- a/src/object/sp-tspan.cpp +++ b/src/object/sp-tspan.cpp @@ -60,7 +60,12 @@ void SPTSpan::build(SPDocument *doc, Inkscape::XML::Node *repr) { this->readAttr( "dx" ); this->readAttr( "dy" ); this->readAttr( "rotate" ); - this->readAttr( "sodipodi:role" ); + + // Strip sodipodi:role from SVG 2 flowed text. + SPText* text = dynamic_cast<SPText*>(parent); + if (text && !(text->has_shape_inside() || text->has_inline_size())) { + this->readAttr( "sodipodi:role" ); + } SPItem::build(doc, repr); } |
