summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2011-08-17 15:13:35 +0200
committerLuboš Luňák <l.lunak@suse.cz>2011-08-18 15:33:48 +0200
commitc070a4d86a43984152ce44ff1d39a21ee5f9818f (patch)
treeed85338d2bf8fb87792f624c8cbf57945b1ad4d0 /starmath
parent283fba09952bcbca74f879ad94371c09ff92907a (diff)
certain SmNode children actually can be NULL
but such (optional) sub-nodes should be handled explicitly when handling the node (e.g. optional subscript)
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/ooxml.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/starmath/source/ooxml.cxx b/starmath/source/ooxml.cxx
index df1b717f72fd..ae5d2f2efd1c 100644
--- a/starmath/source/ooxml.cxx
+++ b/starmath/source/ooxml.cxx
@@ -205,7 +205,15 @@ void SmOoxml::HandleAllSubNodes( SmNode* pNode, int nLevel )
for( int i = 0;
i < size;
++i )
+ {
+// TODO remove when all types of nodes are handled properly
+ if( pNode->GetSubNode( i ) == NULL )
+ {
+ OSL_FAIL( "Subnode is NULL, parent node not handled properly" );
+ continue;
+ }
HandleNode( pNode->GetSubNode( i ), nLevel + 1 );
+ }
}
// output vertical stack, firstItem says which child to use as first (if there