summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorArmin Le Grand <alg@apache.org>2014-02-18 22:09:25 +0000
committerArmin Le Grand <alg@apache.org>2014-02-18 22:09:25 +0000
commit1e403aa7bbfe0353db3d8f02dba5d29ba5876f4d (patch)
tree9df6fcc919f0afb5f77f0fba079e8513dd6c7b9c /svx
parentbbe35be767d76d08891c4f3d3600d80e0e6805f2 (diff)
i121494 Corrected text decomposition when no text distances for text frame are given
Notes
Notes: merged as: 15ddc6aacc3124a3b1f7cc83151f85d942c85ec5
Diffstat (limited to 'svx')
-rw-r--r--svx/source/sdr/primitive2d/sdrdecompositiontools.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/svx/source/sdr/primitive2d/sdrdecompositiontools.cxx b/svx/source/sdr/primitive2d/sdrdecompositiontools.cxx
index 2a029f112280..0ba9d8eece58 100644
--- a/svx/source/sdr/primitive2d/sdrdecompositiontools.cxx
+++ b/svx/source/sdr/primitive2d/sdrdecompositiontools.cxx
@@ -257,8 +257,11 @@ namespace drawinglayer
aTextAnchorRange.expand(aBottomRight);
// now create a transformation from this basic range (aTextAnchorRange)
+ // #121494# if we have no scale use at least 1.0 to have a carrier e.g. for
+ // mirror values, else these will get lost
aAnchorTransform = basegfx::tools::createScaleTranslateB2DHomMatrix(
- aTextAnchorRange.getWidth(), aTextAnchorRange.getHeight(),
+ basegfx::fTools::equalZero(aTextAnchorRange.getWidth()) ? 1.0 : aTextAnchorRange.getWidth(),
+ basegfx::fTools::equalZero(aTextAnchorRange.getHeight()) ? 1.0 : aTextAnchorRange.getHeight(),
aTextAnchorRange.getMinX(), aTextAnchorRange.getMinY());
// apply mirroring