summaryrefslogtreecommitdiff
path: root/starmath/source/ooxmlexport.cxx
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2016-08-08 14:36:15 +0900
committerCaolán McNamara <caolanm@redhat.com>2016-08-08 11:41:25 +0000
commit450a8ee1f49ca32184103a7ddc579351cfc24a6d (patch)
tree21c142f91419d425349525e7ad161b2dd50d8555 /starmath/source/ooxmlexport.cxx
parentf60eaab748add19683e66c7e4bc073c9ce7887f7 (diff)
starmath: SmBraceNode always has 3 children
Change-Id: I53ef8c215866fc45ee82b6805c41c93da0e024b7 Reviewed-on: https://gerrit.libreoffice.org/27980 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/source/ooxmlexport.cxx')
-rw-r--r--starmath/source/ooxmlexport.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/starmath/source/ooxmlexport.cxx b/starmath/source/ooxmlexport.cxx
index 1e79e681c742..b387bd649716 100644
--- a/starmath/source/ooxmlexport.cxx
+++ b/starmath/source/ooxmlexport.cxx
@@ -458,7 +458,7 @@ void SmOoxmlExport::HandleBrace( const SmBraceNode* pNode, int nLevel )
m_pSerializer->startElementNS( XML_m, XML_dPr, FSEND );
//check if the node has an opening brace
- if( TNONE == pNode->GetSubNode(0)->GetToken().eType )
+ if( TNONE == pNode->OpeningBrace()->GetToken().eType )
m_pSerializer->singleElementNS( XML_m, XML_begChr,
FSNS( XML_m, XML_val ), "", FSEND );
else
@@ -490,7 +490,7 @@ void SmOoxmlExport::HandleBrace( const SmBraceNode* pNode, int nLevel )
else
subnodes.push_back( pNode->Body());
- if( TNONE == pNode->GetSubNode(2)->GetToken().eType )
+ if( TNONE == pNode->ClosingBrace()->GetToken().eType )
m_pSerializer->singleElementNS( XML_m, XML_endChr,
FSNS( XML_m, XML_val ), "", FSEND );
else