summaryrefslogtreecommitdiffstats
path: root/src/sp-tref.cpp
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2015-12-05 14:40:56 +0000
committertavmjong-free <tavmjong@free.fr>2015-12-05 14:40:56 +0000
commit78005ad417dde6dddab40efacb757b1d6b0c03d0 (patch)
treea827191465ff949ec952b55ffed30fe943cab019 /src/sp-tref.cpp
parentadded comment + simpler rounding (diff)
downloadinkscape-78005ad417dde6dddab40efacb757b1d6b0c03d0.tar.gz
inkscape-78005ad417dde6dddab40efacb757b1d6b0c03d0.zip
Handle units in the 'x', 'y', 'dx', and 'dy' text and tspan attributes.
Fixed bugs: - https://launchpad.net/bugs/1522478 - https://launchpad.net/bugs/262528 - https://launchpad.net/bugs/168845 (bzr r14505)
Diffstat (limited to 'src/sp-tref.cpp')
-rw-r--r--src/sp-tref.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp-tref.cpp b/src/sp-tref.cpp
index aef18462a..ba592058b 100644
--- a/src/sp-tref.cpp
+++ b/src/sp-tref.cpp
@@ -92,7 +92,7 @@ void SPTRef::set(unsigned int key, const gchar* value) {
debug("0x%p %s(%u): '%s'",this,
sp_attribute_name(key),key,value ? value : "<no value>");
- if (this->attributes.readSingleAttribute(key, value)) { // x, y, dx, dy, rotate
+ if (this->attributes.readSingleAttribute(key, value, style, &viewport)) { // x, y, dx, dy, rotate
this->requestDisplayUpdate(SP_OBJECT_MODIFIED_FLAG);
} else if (key == SP_ATTR_XLINK_HREF) { // xlink:href
if ( !value ) {