diff options
author | Armin Le Grand <alg@apache.org> | 2012-11-21 13:23:01 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-06-07 20:12:22 +0100 |
commit | 13ef16423e78d3ea825172594f08c47d2f9bfd09 (patch) | |
tree | 5882e5a8bde7aa687502516941d4c94da8d48ccb /svx | |
parent | 8c1fd9c39966a0eda71e9e9c8f80a89dd5eb6ef4 (diff) |
For backward compatibility take mirrorings in setTransformation into account
Also found an error in SdrObjCustomShape::TRGetBaseGeometry when MirrorY was used
(cherry picked from commit 4116c33b12d3787c406f0348f89efcb1cf409507)
Conflicts:
xmloff/source/draw/ximpshap.cxx
xmloff/source/draw/ximpshap.hxx
Change-Id: Id85ae4c4f5e26d53d501c72b84fc0e1b5cfe23b2
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/svdraw/svdoashp.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/svx/source/svdraw/svdoashp.cxx b/svx/source/svdraw/svdoashp.cxx index 91e46be4c7c6..15aaa0173cb9 100644 --- a/svx/source/svdraw/svdoashp.cxx +++ b/svx/source/svdraw/svdoashp.cxx @@ -3107,11 +3107,11 @@ sal_Bool SdrObjCustomShape::TRGetBaseGeometry(basegfx::B2DHomMatrix& rMatrix, ba } // mirror polygon and move it a bit Polygon aPol0(aPol); - aPol[0]=aPol0[1]; - aPol[1]=aPol0[0]; - aPol[2]=aPol0[3]; - aPol[3]=aPol0[2]; - aPol[4]=aPol0[1]; + aPol[0]=aPol0[3]; // This was WRONG for vertical (!) + aPol[1]=aPol0[2]; + aPol[2]=aPol0[1]; + aPol[3]=aPol0[0]; + aPol[4]=aPol0[3]; Poly2Rect(aPol,aRectangle,aNewGeo); } } |