summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-12-06 09:54:18 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-12-06 15:18:41 +0100
commita8781520e3d47dd0ea25039cf45eea1ed8704af7 (patch)
tree4bb7d8973811b9102ea95f40a35f88a980787e3e
parentUse proper language fallback chain to find installed help (diff)
downloadcore-a8781520e3d47dd0ea25039cf45eea1ed8704af7.tar.gz
core-a8781520e3d47dd0ea25039cf45eea1ed8704af7.zip
ofz: oom, variation 0 and 1 have one argument
while variation 2 has two arguments Change-Id: Ia2a9bd5e33b589b6e002da78d1a5b45d703565ef Reviewed-on: https://gerrit.libreoffice.org/45926 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--starmath/source/mathtype.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/starmath/source/mathtype.cxx b/starmath/source/mathtype.cxx
index 9dd5ec5f9297..dba5c8494721 100644
--- a/starmath/source/mathtype.cxx
+++ b/starmath/source/mathtype.cxx
@@ -1644,9 +1644,8 @@ bool MathType::HandleRecords(int nLevel, sal_uInt8 nSelector,
rRet.clear();
newline--;
}
- else if ((nPart == 2) ||
- ((nPart == 1) && (nVariation == 0)) ||
- (nVariation == 1))
+ else if ((nPart == 2) || ((nPart == 1) &&
+ (nVariation == 0 || nVariation == 1)))
{
sPush+=rRet;
rRet = sPush;