summaryrefslogtreecommitdiffstats
path: root/src/sp-flowtext.cpp
diff options
context:
space:
mode:
authorLiam P. White <inkscapebrony@gmail.com>2014-10-08 02:22:03 +0000
committerLiam P. White <inkscapebrony@gmail.com>2014-10-08 02:22:03 +0000
commitf3840fe9d0d423f6ddf5a68d776a903d57ffb7b5 (patch)
treec8e28b27f5885928ccf866a69eb6cbc99fde599c /src/sp-flowtext.cpp
parentUpdate to experimental r13565 (diff)
parentSome template cleanup... (diff)
downloadinkscape-f3840fe9d0d423f6ddf5a68d776a903d57ffb7b5.tar.gz
inkscape-f3840fe9d0d423f6ddf5a68d776a903d57ffb7b5.zip
Update to experimental r13598
(bzr r13341.5.17)
Diffstat (limited to 'src/sp-flowtext.cpp')
-rw-r--r--src/sp-flowtext.cpp17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/sp-flowtext.cpp b/src/sp-flowtext.cpp
index 7de65ccc3..72fe86daf 100644
--- a/src/sp-flowtext.cpp
+++ b/src/sp-flowtext.cpp
@@ -673,6 +673,21 @@ Geom::Affine SPFlowtext::set_transform (Geom::Affine const &xform)
return xform;
}
+ SPObject *region = NULL;
+ for ( SPObject *o = this->firstChild() ; o ; o = o->getNext() ) {
+ if (SP_IS_FLOWREGION(o)) {
+ region = o;
+ break;
+ }
+ }
+ if (region) {
+ if (SP_IS_RECT(region->firstChild())) {
+ SPRect *rect = SP_RECT(region->firstChild());
+ rect->set_i2d_affine(xform * rect->i2dt_affine());
+ rect->doWriteTransform(rect->getRepr(), rect->transform, NULL, true);
+ }
+ }
+
Geom::Affine ret(xform);
ret[0] /= ex;
ret[1] /= ex;
@@ -693,7 +708,7 @@ Geom::Affine SPFlowtext::set_transform (Geom::Affine const &xform)
this->requestDisplayUpdate(SP_OBJECT_MODIFIED_FLAG | SP_TEXT_LAYOUT_MODIFIED_FLAG);
- return ret;
+ return Geom::Affine();
}
/*