diff options
author | Armin Le Grand <alg@apache.org> | 2014-02-18 22:09:25 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-20 13:49:59 +0000 |
commit | 15ddc6aacc3124a3b1f7cc83151f85d942c85ec5 (patch) | |
tree | 2353b425e2172aa57b7e065696c0ad184e9dad91 /svx/source | |
parent | bd8ef7c4457f4ec06361f51620aec18e1c507ab9 (diff) |
Resolves: #i121494# Corrected text decomposition when...
no text distances for text frame are given
(cherry picked from commit 1e403aa7bbfe0353db3d8f02dba5d29ba5876f4d)
Change-Id: Ie551211ebec671a32bc6e35e513b07c290d9cb9b
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/sdr/primitive2d/sdrdecompositiontools.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/svx/source/sdr/primitive2d/sdrdecompositiontools.cxx b/svx/source/sdr/primitive2d/sdrdecompositiontools.cxx index 047f5a77d452..486d26df9054 100644 --- a/svx/source/sdr/primitive2d/sdrdecompositiontools.cxx +++ b/svx/source/sdr/primitive2d/sdrdecompositiontools.cxx @@ -252,8 +252,11 @@ namespace drawinglayer aTextAnchorRange.expand(aBottomRight); // now create a transformation from this basic range (aTextAnchorRange) + // #i121494# 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 |