summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2011-11-30 12:57:39 +0100
committerLuboš Luňák <l.lunak@suse.cz>2011-11-30 16:11:45 +0100
commit53c9a92cc82baaabd05b182152541e0c7d2bd3d0 (patch)
tree8d150434d27e54a51423fb94425ed833f447acfa /starmath
parentcb0965a860b6a08333eb1373b8018454da3b260f (diff)
fix writing of docx m:sPre
Diffstat (limited to 'starmath')
-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 7bfa6ec83f4b..1bab1f266ccd 100644
--- a/starmath/source/ooxmlexport.cxx
+++ b/starmath/source/ooxmlexport.cxx
@@ -544,7 +544,7 @@ void SmOoxmlExport::HandleSubSupScript( const SmSubSupNode* pNode, int nLevel )
| ( pNode->GetSubSup( CSUP ) != NULL ? ( 1 << CSUP ) : 0 )
| ( pNode->GetSubSup( RSUB ) != NULL ? ( 1 << RSUB ) : 0 )
| ( pNode->GetSubSup( RSUP ) != NULL ? ( 1 << RSUP ) : 0 )
- | ( pNode->GetSubSup( LSUB ) != NULL ? ( 1 << RSUB ) : 0 )
+ | ( pNode->GetSubSup( LSUB ) != NULL ? ( 1 << LSUB ) : 0 )
| ( pNode->GetSubSup( LSUP ) != NULL ? ( 1 << LSUP ) : 0 );
if( flags == 0 ) // none
return;
@@ -601,7 +601,7 @@ void SmOoxmlExport::HandleSubSupScriptInternal( const SmSubSupNode* pNode, int n
m_pSerializer->startElementNS( XML_m, XML_e, FSEND );
HandleNode( pNode->GetBody(), nLevel + 1 );
m_pSerializer->endElementNS( XML_m, XML_e );
- m_pSerializer->endElementNS( XML_m, XML_sSubSup );
+ m_pSerializer->endElementNS( XML_m, XML_sPre );
}
else
{