[Libreoffice-commits] .: 2 commits - starmath/source
Caolán McNamara
caolan at kemper.freedesktop.org
Mon Sep 26 04:59:42 PDT 2011
starmath/source/mathmlimport.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 0be026ea4ae6d53d6cc0e5acb10bd58bec490adc
Author: Caolán McNamara <caolanm at redhat.com>
Date: Mon Sep 26 12:59:36 2011 +0100
<= for extra safely I suppose
diff --git a/starmath/source/mathmlimport.cxx b/starmath/source/mathmlimport.cxx
index ce1d3c6..568ebb6 100644
--- a/starmath/source/mathmlimport.cxx
+++ b/starmath/source/mathmlimport.cxx
@@ -2461,7 +2461,7 @@ void SmXMLMultiScriptsContext_Impl::ProcessSubSupPairs(bool bIsPrescript)
{
SmNodeStack &rNodeStack = GetSmImport().GetNodeStack();
- if (rNodeStack.Count() == nElementCount)
+ if (rNodeStack.Count() <= nElementCount)
return;
sal_uLong nCount = rNodeStack.Count() - nElementCount - 1;
commit 30e8dcf0372977d5c6daea949b5cd39b6690fc55
Author: Ivan Timofeev <timofeev.i.s at gmail.com>
Date: Fri Sep 23 22:31:40 2011 +0400
consider empty <mmultiscripts>
diff --git a/starmath/source/mathmlimport.cxx b/starmath/source/mathmlimport.cxx
index 9cd36c6..ce1d3c6 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;
More information about the Libreoffice-commits
mailing list