svx/source/sdr/contact/viewcontactofgraphic.cxx |   22 +---------------------
 1 file changed, 1 insertion(+), 21 deletions(-)

New commits:
commit 20e991f0269adc49b790fcabdc3ad31af4f03de5
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Sun Dec 5 16:56:27 2021 +0000
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Sun Dec 5 20:11:01 2021 +0100

    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 <caol...@redhat.com>

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);

Reply via email to