summaryrefslogtreecommitdiffstats
path: root/starmath
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-12-05 11:22:58 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-12-06 09:54:31 +0100
commit870f23b69b09dc28e3d750373d057477d931fe87 (patch)
treea6a82c942e29c0c290eb70f82845f45f3ae6cd4d /starmath
parenttdf#113413 dbaccess: only use SolarMutex in ODatabaseDocument (diff)
downloadcore-870f23b69b09dc28e3d750373d057477d931fe87.tar.gz
core-870f23b69b09dc28e3d750373d057477d931fe87.zip
ofz: avoid oom, tmLDIV has only two slots
Change-Id: I6df2ec0790e94008eba6a7d97256440db5a26ac7 Reviewed-on: https://gerrit.libreoffice.org/45870 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.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/starmath/source/mathtype.cxx b/starmath/source/mathtype.cxx
index 085b7cfc452b..11ce178bf6b6 100644
--- a/starmath/source/mathtype.cxx
+++ b/starmath/source/mathtype.cxx
@@ -1461,7 +1461,7 @@ bool MathType::HandleRecords(int nLevel, sal_uInt8 nSelector,
sMainTerm = rRet;
rRet.clear();
}
- else
+ else if (nPart == 1)
{
sPush += rRet;
rRet = sPush;