summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-12-05 16:49:04 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-12-05 20:09:47 +0100
commit0f976bdb7b7735b4364ae6f3a84a950ab07822bb (patch)
treee6f5bb6737c268aea808e24542d66af906973ae0 /svx
parentb8e36ff21c50985d56ec499211302586bc451891 (diff)
cid#1494630 #3 rearrange to demo Logically dead code
Change-Id: I263ce873a2a308a1a986fd09310b691d9c6525fa Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126385 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/sdr/contact/viewcontactofgraphic.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/sdr/contact/viewcontactofgraphic.cxx b/svx/source/sdr/contact/viewcontactofgraphic.cxx
index 4e1aa179b976..d2e21ed0d487 100644
--- a/svx/source/sdr/contact/viewcontactofgraphic.cxx
+++ b/svx/source/sdr/contact/viewcontactofgraphic.cxx
@@ -328,7 +328,7 @@ namespace sdr::contact
if (bRota180)
{
const sal_uInt16 nMirrorCase(bMirrored ? 3 : 4);
- bHMirr = ((2 == nMirrorCase ) || (4 == nMirrorCase));
+ bHMirr = 4 == nMirrorCase;
// 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.
@@ -338,8 +338,8 @@ namespace sdr::contact
else
{
const sal_uInt16 nMirrorCase(bMirrored ? 2 : 1);
- bHMirr = ((2 == nMirrorCase ) || (4 == nMirrorCase));
- bVMirr = ((3 == nMirrorCase ) || (4 == nMirrorCase));
+ bHMirr = 2 == nMirrorCase;
+ bVMirr = false;
}
if(bHMirr || bVMirr)