Kaydet (Commit) 9bb74686 authored tarafından Frédéric Wang's avatar Frédéric Wang Kaydeden (comit) Bosdonnat Cedric

fdo#66088 - follow-up: handle NGLYPHSPECIAL and NSPECIAL too.

Change-Id: Ifc078732e28e9bdaa796c5be3c08c20f9512926e
Reviewed-on: https://gerrit.libreoffice.org/4631Reviewed-by: 's avatarBosdonnat Cedric <cedric.bosdonnat@free.fr>
Tested-by: 's avatarBosdonnat Cedric <cedric.bosdonnat@free.fr>
üst e58d7217
...@@ -910,9 +910,9 @@ void SmXMLExport::ExportMath(const SmNode *pNode, int /*nLevel*/) ...@@ -910,9 +910,9 @@ void SmXMLExport::ExportMath(const SmNode *pNode, int /*nLevel*/)
const SmMathSymbolNode *pTemp = static_cast<const SmMathSymbolNode *>(pNode); const SmMathSymbolNode *pTemp = static_cast<const SmMathSymbolNode *>(pNode);
SvXMLElementExport *pMath = 0; 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); pMath = new SvXMLElementExport(*this, XML_NAMESPACE_MATH, XML_MO, sal_True, sal_False);
} }
else else
...@@ -1545,7 +1545,6 @@ void SmXMLExport::ExportNodes(const SmNode *pNode, int nLevel) ...@@ -1545,7 +1545,6 @@ void SmXMLExport::ExportNodes(const SmNode *pNode, int nLevel)
case NTEXT: case NTEXT:
ExportText(pNode, nLevel); ExportText(pNode, nLevel);
break; break;
case NSPECIAL: //NSPECIAL requires some sort of Entity preservation in the XML engine.
case NGLYPH_SPECIAL: case NGLYPH_SPECIAL:
case NMATH: case NMATH:
{ {
...@@ -1587,6 +1586,7 @@ void SmXMLExport::ExportNodes(const SmNode *pNode, int nLevel) ...@@ -1587,6 +1586,7 @@ void SmXMLExport::ExportNodes(const SmNode *pNode, int nLevel)
} }
} }
break; break;
case NSPECIAL: //NSPECIAL requires some sort of Entity preservation in the XML engine.
case NMATHIDENT : case NMATHIDENT :
case NPLACE: case NPLACE:
ExportMath(pNode, nLevel); ExportMath(pNode, nLevel);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment