summaryrefslogtreecommitdiffstats
path: root/src/text-chemistry.cpp
diff options
context:
space:
mode:
authorThomas Holder <thomas@thomas-holder.de>2019-05-29 18:04:33 +0000
committerThomas Holder <thomas@thomas-holder.de>2019-05-31 06:55:13 +0000
commitf75834db06399fac617526b12adf70bc3cf379e1 (patch)
tree634f2fa33c1160e1d9794464ae16433320efda1b /src/text-chemistry.cpp
parentDelete keybindings.rc (diff)
downloadinkscape-f75834db06399fac617526b12adf70bc3cf379e1.tar.gz
inkscape-f75834db06399fac617526b12adf70bc3cf379e1.zip
fix #140 scaled text flow into frame
Diffstat (limited to 'src/text-chemistry.cpp')
-rw-r--r--src/text-chemistry.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/text-chemistry.cpp b/src/text-chemistry.cpp
index 8a2433ec6..802f10a3f 100644
--- a/src/text-chemistry.cpp
+++ b/src/text-chemistry.cpp
@@ -334,9 +334,10 @@ text_flow_into_shape()
} else {
// SVG 1.2 Flowed Text
- if (SP_IS_TEXT(text)) {
+ if (SP_IS_TEXT(text) || SP_IS_FLOWTEXT(text)) {
// remove transform from text, but recursively scale text's fontsize by the expansion
- SP_TEXT(text)->_adjustFontsizeRecursive(text, text->transform.descrim());
+ auto ex = i2i_affine(text, shape->parent).descrim();
+ SP_TEXT(text)->_adjustFontsizeRecursive(text, ex);
text->getRepr()->setAttribute("transform", nullptr);
}