diff options
author | Regina Henschel <rb.henschel@t-online.de> | 2022-07-24 01:23:32 +0200 |
---|---|---|
committer | Regina Henschel <rb.henschel@t-online.de> | 2022-07-25 23:07:28 +0200 |
commit | 5df1bb4b1b222be00d25097660c4ee33542896ea (patch) | |
tree | 2e3a881d482449e27ca4d8df78d8f64ba4cae43f /sd/qa/unit/data/pptx | |
parent | 306ae32bfa92b06588173ee495acf3cb384ffb24 (diff) |
tdf#135953 move txXfrm to compensate TextRotateAngle
The text rectangle specified by the txXfrm element rotates around its
center. We not directly use this rectangle but we use the text area
rectangle of the preset geometry and crop it by setting distances so,
that the result equals the txXfrm rectangle. But the text area
rectangle still rotates at its original center. So we shift the txXfrm
rectangle so, that it would be at it original place, when rotated with
TextRotateAngle. We then can use the shifted one to calculate the
needed distance values.
This patch contains the calculation of the text area rectangle for
type 'rightArrow' in addition. That fixes tdf#132302.
Change-Id: I59d9aecaaa7ce2ef4502651088ff9576b90873f7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137396
Tested-by: Jenkins
Reviewed-by: Regina Henschel <rb.henschel@t-online.de>
Diffstat (limited to 'sd/qa/unit/data/pptx')
-rw-r--r-- | sd/qa/unit/data/pptx/tdf132302_SmartArt_rightArrow.pptx | bin | 0 -> 27504 bytes |
-rw-r--r-- | sd/qa/unit/data/pptx/tdf135953_SmartArt_textposition.pptx | bin | 0 -> 27034 bytes |
2 files changed, 0 insertions, 0 deletions
diff --git a/sd/qa/unit/data/pptx/tdf132302_SmartArt_rightArrow.pptx b/sd/qa/unit/data/pptx/tdf132302_SmartArt_rightArrow.pptx Binary files differnew file mode 100644 index 000000000000..7e50ff4005ba --- /dev/null +++ b/sd/qa/unit/data/pptx/tdf132302_SmartArt_rightArrow.pptx diff --git a/sd/qa/unit/data/pptx/tdf135953_SmartArt_textposition.pptx b/sd/qa/unit/data/pptx/tdf135953_SmartArt_textposition.pptx Binary files differnew file mode 100644 index 000000000000..c76e4c7db0cf --- /dev/null +++ b/sd/qa/unit/data/pptx/tdf135953_SmartArt_textposition.pptx |