summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2016-03-18 09:16:49 +0000
committertavmjong-free <tavmjong@free.fr>2016-03-18 09:16:49 +0000
commitfbc8d89437445c1024ab4ef2e838f177f408f9f1 (patch)
tree0c190e7be413821859c47017564b028eb4f5aedb /src
parent[Bug #1558177] Simplify if conditions in Script.cpp. (diff)
downloadinkscape-fbc8d89437445c1024ab4ef2e838f177f408f9f1.tar.gz
inkscape-fbc8d89437445c1024ab4ef2e838f177f408f9f1.zip
Fix writing of 'x' and 'y' attributes in multiline text via sodipode:role="line".
(bzr r14716)
Diffstat (limited to 'src')
-rw-r--r--src/sp-text.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sp-text.cpp b/src/sp-text.cpp
index 4a5b1b1d6..7d4348d19 100644
--- a/src/sp-text.cpp
+++ b/src/sp-text.cpp
@@ -819,8 +819,8 @@ void TextTagAttributes::setFirstXY(Geom::Point &point)
attributes.x.resize(1, zero_length);
if (attributes.y.empty())
attributes.y.resize(1, zero_length);
- attributes.x[0].computed = point[Geom::X];
- attributes.y[0].computed = point[Geom::Y];
+ attributes.x[0] = point[Geom::X];
+ attributes.y[0] = point[Geom::Y];
}
void TextTagAttributes::mergeInto(Inkscape::Text::Layout::OptionalTextTagAttrs *output, Inkscape::Text::Layout::OptionalTextTagAttrs const &parent_attrs, unsigned parent_attrs_offset, bool copy_xy, bool copy_dxdyrotate) const