summaryrefslogtreecommitdiff
path: root/svx/source/sdr
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-12-05 16:53:22 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-12-05 20:10:32 +0100
commit2340639df07755a1d67fb59b52a9ece65f279f4a (patch)
treeea14ce3159a126bb4d6d1b7440bfa7f015ebdee3 /svx/source/sdr
parent50b8dacd0b53b694e14b2982968e3eebd0d5cbb6 (diff)
cid#1494630 #4 rearrange to demo Logically dead code
Change-Id: I3d7efa59ecaf21a582644594f26a1d2116d1965c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126387 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx/source/sdr')
-rw-r--r--svx/source/sdr/contact/viewcontactofgraphic.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/svx/source/sdr/contact/viewcontactofgraphic.cxx b/svx/source/sdr/contact/viewcontactofgraphic.cxx
index aeebfabdc442..dd4afd9ba64e 100644
--- a/svx/source/sdr/contact/viewcontactofgraphic.cxx
+++ b/svx/source/sdr/contact/viewcontactofgraphic.cxx
@@ -326,8 +326,7 @@ namespace sdr::contact
// accordingly. The created bitmapPrimitive WILL use the rotation, too.
if (bRota180)
{
- const sal_uInt16 nMirrorCase(bMirrored ? 3 : 4);
- bHMirr = 4 == nMirrorCase;
+ bHMirr = !bMirrored;
// 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.
@@ -335,8 +334,7 @@ namespace sdr::contact
}
else
{
- const sal_uInt16 nMirrorCase(bMirrored ? 2 : 1);
- bHMirr = 2 == nMirrorCase;
+ bHMirr = bMirrored;
}
if (bHMirr)