From 5a1239565aeab46c53b36099c7d79c3b9a8b77bd Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Sat, 7 Sep 2019 16:28:20 +0200 Subject: Write out 'x' and 'y' attribute values to repr when some text property value changes. Changes to property values may cause text to be relayed out, changing 'x' and 'y' attributes on tspans with sodipodi:role="line". Fix for issue 234. --- src/object/sp-text.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/object/sp-text.cpp') diff --git a/src/object/sp-text.cpp b/src/object/sp-text.cpp index ee020ab54..f42a694f0 100644 --- a/src/object/sp-text.cpp +++ b/src/object/sp-text.cpp @@ -846,6 +846,7 @@ void SPText::rebuildLayout() Inkscape::Text::Layout::iterator iter = layout.sourceToIterator(tspan); Geom::Point anchor_point = layout.chunkAnchorPoint(iter); tspan->attributes.setFirstXY(anchor_point); + // repr needs to be updated but if we do it here we get a loop. } } } -- cgit v1.2.3