summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorIvan Timofeev <timofeev.i.s@gmail.com>2011-09-23 22:31:40 +0400
committerCaolán McNamara <caolanm@redhat.com>2011-09-26 12:54:37 +0100
commit30e8dcf0372977d5c6daea949b5cd39b6690fc55 (patch)
treeb98bef68e14aee038f0e03ad350b97bbfb7ff955 /starmath
parent1da878532e2c821313609fe376df05895f1325a6 (diff)
consider empty <mmultiscripts>
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/mathmlimport.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/starmath/source/mathmlimport.cxx b/starmath/source/mathmlimport.cxx
index 9cd36c6a69af..ce1d3c62e612 100644
--- a/starmath/source/mathmlimport.cxx
+++ b/starmath/source/mathmlimport.cxx
@@ -2461,6 +2461,9 @@ void SmXMLMultiScriptsContext_Impl::ProcessSubSupPairs(bool bIsPrescript)
{
SmNodeStack &rNodeStack = GetSmImport().GetNodeStack();
+ if (rNodeStack.Count() == nElementCount)
+ return;
+
sal_uLong nCount = rNodeStack.Count() - nElementCount - 1;
if (nCount == 0)
return;