summaryrefslogtreecommitdiff
path: root/starmath/source/ooxmlexport.cxx
diff options
context:
space:
mode:
authorFrédéric Wang <fred.wang@free.fr>2013-06-27 21:35:28 +0200
committerFridrich Strba <fridrich@documentfoundation.org>2013-06-28 09:56:36 +0000
commit43cf39adff66d20862956869d11fbcc184eb5702 (patch)
treea0d8ad03ab6b0a9d98efe80288400d667954b8e9 /starmath/source/ooxmlexport.cxx
parent4f294a90877d2f91bb88c7d6cd5b74e8e546a025 (diff)
fdo#66088 Export some math symbols as <mi> elements.
Change-Id: Ib08717c3d4d41abc7bce4cd6bc2e63bda7db6086 Reviewed-on: https://gerrit.libreoffice.org/4595 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
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 3cbdf45f0875..c7ab7ff5bed4 100644
--- a/starmath/source/ooxmlexport.cxx
+++ b/starmath/source/ooxmlexport.cxx
@@ -236,7 +236,7 @@ void SmOoxmlExport::HandleRoot( const SmRootNode* pNode, int nLevel )
static OString mathSymbolToString( const SmNode* node )
{
- assert( node->GetType() == NMATH );
+ assert( node->GetType() == NMATH || node->GetType() == NMATHIDENT );
const SmTextNode* txtnode = static_cast< const SmTextNode* >( node );
assert( txtnode->GetText().getLength() == 1 );
sal_Unicode chr = SmTextNode::ConvertSymbolToUnicode( txtnode->GetText()[0] );
@@ -463,7 +463,7 @@ void SmOoxmlExport::HandleBrace( const SmBraceNode* pNode, int nLevel )
for( int i = 0; i < body->GetNumSubNodes(); ++i )
{
const SmNode* subnode = body->GetSubNode( i );
- if( subnode->GetType() == NMATH )
+ if (subnode->GetType() == NMATH || subnode->GetType() == NMATHIDENT)
{ // do not write, but write what separator it is
const SmMathSymbolNode* math = static_cast< const SmMathSymbolNode* >( subnode );
if( !separatorWritten )