summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-12-05 16:56:27 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-12-05 20:11:01 +0100
commit20e991f0269adc49b790fcabdc3ad31af4f03de5 (patch)
tree1272946f84ab270817d6c6ef951f60f89a2cd7ee /svx
parent87f370f1f7c84d4d7d8fc004f0d4a8a3986e02e3 (diff)
cid#1494630 in the end bMirrored -> SetMirrorFlags(BmpMirrorFlags::Horizontal)
no matter whan else Change-Id: I0b645f787f294a3ba21a4e4dad4da37e7baaa4c3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126389 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/sdr/contact/viewcontactofgraphic.cxx22
1 files changed, 1 insertions, 21 deletions
diff --git a/svx/source/sdr/contact/viewcontactofgraphic.cxx b/svx/source/sdr/contact/viewcontactofgraphic.cxx
index ea95c13db45d..92231cdaffbe 100644
--- a/svx/source/sdr/contact/viewcontactofgraphic.cxx
+++ b/svx/source/sdr/contact/viewcontactofgraphic.cxx
@@ -315,30 +315,10 @@ namespace sdr::contact
// look for mirroring
const GeoStat& rGeoStat(GetGrafObject().GetGeoStat());
const Degree100 nRotationAngle(rGeoStat.nRotationAngle);
- const bool bRota180(18000_deg100 == nRotationAngle);
const bool bMirrored(GetGrafObject().IsMirrored());
- bool bHMirr;
-
- // set mirror flags at LocalGrafInfo. Take into account that the geometry in
- // aObjectRange is already changed and rotated when bRota180 is used. To rebuild
- // that old behaviour (as long as part of the model data), correct the H/V flags
- // accordingly. The created bitmapPrimitive WILL use the rotation, too.
- if (bRota180)
- {
- // if bRota180 which is used for vertical mirroring, the graphic will already be rotated
- // by 180 degrees. To correct, switch off VMirror and invert HMirroring.
- bHMirr = bMirrored;
- }
- else
- {
- bHMirr = bMirrored;
- }
-
- if (bHMirr)
- {
+ if (bMirrored)
aLocalGrafInfo.SetMirrorFlags(BmpMirrorFlags::Horizontal);
- }
// fill object matrix
const double fShearX(-rGeoStat.mfTanShearAngle);