summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
Diffstat (limited to 'starmath')
-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;