diff options
| author | Alvin Penner <penner@vaxxine.com> | 2014-10-03 19:15:18 +0000 |
|---|---|---|
| committer | apenner <penner@vaxxine.com> | 2014-10-03 19:15:18 +0000 |
| commit | 601a9a118cf80672d71e503e86827d17c5043590 (patch) | |
| tree | 904f06832c5892d63f81932c5a78f5673c22fe22 /src/sp-flowtext.cpp | |
| parent | Work-around for Pango 1.36.7 which introduced 'Semi-Light' font weight, (diff) | |
| download | inkscape-601a9a118cf80672d71e503e86827d17c5043590.tar.gz inkscape-601a9a118cf80672d71e503e86827d17c5043590.zip | |
modify scaling procedure for uniform scaling of flowed text (Bug 1278561)
Fixed bugs:
- https://launchpad.net/bugs/1278561
(bzr r13578)
Diffstat (limited to 'src/sp-flowtext.cpp')
| -rw-r--r-- | src/sp-flowtext.cpp | 17 |
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(); } /* |
