diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-12-06 09:54:18 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-12-06 15:18:41 +0100 |
commit | a8781520e3d47dd0ea25039cf45eea1ed8704af7 (patch) | |
tree | 4bb7d8973811b9102ea95f40a35f88a980787e3e /starmath | |
parent | 6a8fc4ee51bedc40d4e39690bc65eb4c2e8a0074 (diff) |
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>
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/mathtype.cxx | 5 |
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; |