diff options
author | Frédéric Wang <fred.wang@free.fr> | 2013-06-30 14:06:23 +0200 |
---|---|---|
committer | Bosdonnat Cedric <cedric.bosdonnat@free.fr> | 2013-07-02 09:06:54 +0000 |
commit | 9bb74686b1f857e791235381db632d1b5ac58296 (patch) | |
tree | 17039c35475d55e409786f1b1e4ca4f543573bf9 /starmath | |
parent | e58d721709bd4e255f70cc824cd484cd1a1ec32d (diff) |
fdo#66088 - follow-up: handle NGLYPHSPECIAL and NSPECIAL too.
Change-Id: Ifc078732e28e9bdaa796c5be3c08c20f9512926e
Reviewed-on: https://gerrit.libreoffice.org/4631
Reviewed-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr>
Tested-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr>
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/mathmlexport.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/starmath/source/mathmlexport.cxx b/starmath/source/mathmlexport.cxx index 3fc23b73188f..a10765e7d398 100644 --- a/starmath/source/mathmlexport.cxx +++ b/starmath/source/mathmlexport.cxx @@ -910,9 +910,9 @@ void SmXMLExport::ExportMath(const SmNode *pNode, int /*nLevel*/) const SmMathSymbolNode *pTemp = static_cast<const SmMathSymbolNode *>(pNode); SvXMLElementExport *pMath = 0; - if (pNode->GetType() == NMATH) + if (pNode->GetType() == NMATH || pNode->GetType() == NGLYPH_SPECIAL) { - // Export NMATH symbols as <mo> elements + // Export NMATH and NGLYPH_SPECIAL symbols as <mo> elements pMath = new SvXMLElementExport(*this, XML_NAMESPACE_MATH, XML_MO, sal_True, sal_False); } else @@ -1545,7 +1545,6 @@ void SmXMLExport::ExportNodes(const SmNode *pNode, int nLevel) case NTEXT: ExportText(pNode, nLevel); break; - case NSPECIAL: //NSPECIAL requires some sort of Entity preservation in the XML engine. case NGLYPH_SPECIAL: case NMATH: { @@ -1587,6 +1586,7 @@ void SmXMLExport::ExportNodes(const SmNode *pNode, int nLevel) } } break; + case NSPECIAL: //NSPECIAL requires some sort of Entity preservation in the XML engine. case NMATHIDENT : case NPLACE: ExportMath(pNode, nLevel); |