summaryrefslogtreecommitdiffstats
path: root/src/object/sp-text.cpp
diff options
context:
space:
mode:
authorJabiertxof <jabier.arraiza@marker.es>2019-09-05 21:06:14 +0000
committerJabier Arraiza <jabier.arraiza@marker.es>2019-09-07 21:48:33 +0000
commit07f123388ae69c33ff184db5e79cb557b29cd44a (patch)
tree0f86115ba626029b83c54532c8ea59fc4f4d27bf /src/object/sp-text.cpp
parentfixx flowbox on SVG2 mode using tspans (diff)
downloadinkscape-07f123388ae69c33ff184db5e79cb557b29cd44a.tar.gz
inkscape-07f123388ae69c33ff184db5e79cb557b29cd44a.zip
Prepare for beta
Diffstat (limited to 'src/object/sp-text.cpp')
-rw-r--r--src/object/sp-text.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/object/sp-text.cpp b/src/object/sp-text.cpp
index 7035d78b2..2c37e1736 100644
--- a/src/object/sp-text.cpp
+++ b/src/object/sp-text.cpp
@@ -838,13 +838,10 @@ void SPText::rebuildLayout()
#endif
// set the x,y attributes on role:line spans
- Inkscape::Preferences *prefs = Inkscape::Preferences::get();
- bool svg2text = prefs->getBool("/tools/text/use_svg2");
for (auto& child: children) {
if (SP_IS_TSPAN(&child)) {
SPTSpan *tspan = SP_TSPAN(&child);
- if (!svg2text &&
- (tspan->role != SP_TSPAN_ROLE_UNSPECIFIED)
+ if ((tspan->role != SP_TSPAN_ROLE_UNSPECIFIED)
&& tspan->attributes.singleXYCoordinates() ) {
Inkscape::Text::Layout::iterator iter = layout.sourceToIterator(tspan);
Geom::Point anchor_point = layout.chunkAnchorPoint(iter);