summaryrefslogtreecommitdiff
path: root/starmath/source/mathtype.cxx
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2018-10-28 03:04:53 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2018-10-28 07:56:46 +0100
commitea62885a4f759dfb5a7236e9ac3a69da4703e902 (patch)
treec1e5cae71179b77352f58e7a4cbe3c55735fd581 /starmath/source/mathtype.cxx
parentc026807d8d4654090bccefc6d70ceb1819c2092a (diff)
tdf#120703 PVS: V547 Expression is always true/false
Change-Id: Ieb48a5fd29f78d2e39e1d91448f3ce973aff93d9 Reviewed-on: https://gerrit.libreoffice.org/62463 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'starmath/source/mathtype.cxx')
-rw-r--r--starmath/source/mathtype.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/starmath/source/mathtype.cxx b/starmath/source/mathtype.cxx
index 9bd8c4e69ed7..dd44d32d332f 100644
--- a/starmath/source/mathtype.cxx
+++ b/starmath/source/mathtype.cxx
@@ -745,9 +745,9 @@ bool MathType::HandleRecords(int nLevel, sal_uInt8 nSelector,
rRet.append(" \\ldline ");
break;
case tmFLOOR:
- if (nVariation == 0 || nVariation == 1)
+ if (nVariation == 0 || nVariation & 0x01) // tvFENCE_L
rRet.append(" left lfloor ");
- else if (nVariation==1)
+ else
rRet.append(" left none ");
break;
case tmCEILING:
@@ -1286,9 +1286,9 @@ bool MathType::HandleRecords(int nLevel, sal_uInt8 nSelector,
rRet.append(" \\rdline ");
break;
case tmFLOOR:
- if (nVariation == 0 || nVariation == 2)
+ if (nVariation == 0 || nVariation & 0x02) // tvFENCE_R
rRet.append(" right rfloor ");
- else if (nVariation==2)
+ else
rRet.append(" right none ");
break;
case tmCEILING: