summaryrefslogtreecommitdiff
path: root/starmath/source/mathml.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'starmath/source/mathml.cxx')
-rw-r--r--starmath/source/mathml.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/starmath/source/mathml.cxx b/starmath/source/mathml.cxx
index 10d2a323111d..fba3b1bbddc1 100644
--- a/starmath/source/mathml.cxx
+++ b/starmath/source/mathml.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: mathml.cxx,v $
*
- * $Revision: 1.85 $
+ * $Revision: 1.86 $
*
- * last change: $Author: obo $ $Date: 2008-02-26 14:44:25 $
+ * last change: $Author: obo $ $Date: 2008-03-26 08:56:19 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -3143,12 +3143,12 @@ void SmXMLMultiScriptsContext_Impl::MiddleElement()
SmNode *pScriptNode = aReverseStack.Pop();
- if ((pScriptNode->GetToken().eType != TIDENT) ||
- (pScriptNode->GetToken().aText.Len()))
+ if (pScriptNode && ((pScriptNode->GetToken().eType != TIDENT) ||
+ (pScriptNode->GetToken().aText.Len())))
aSubNodes.Put(RSUB+1,pScriptNode);
pScriptNode = aReverseStack.Pop();
- if ((pScriptNode->GetToken().eType != TIDENT) ||
- (pScriptNode->GetToken().aText.Len()))
+ if (pScriptNode && ((pScriptNode->GetToken().eType != TIDENT) ||
+ (pScriptNode->GetToken().aText.Len())))
aSubNodes.Put(RSUP+1,pScriptNode);
pNode->SetSubNodes(aSubNodes);