diff options
author | Frédéric Wang <fred.wang@free.fr> | 2013-06-22 20:03:59 +0200 |
---|---|---|
committer | Fridrich Strba <fridrich@documentfoundation.org> | 2013-06-28 09:45:59 +0000 |
commit | 6231979ce1b89ce36e0a68139c96c5c1c1e704bb (patch) | |
tree | 40c2e83c44c028dec1d71acb8413b929682f7df8 /starmath/source/mathmlexport.cxx | |
parent | 74c5ed19f430327988194cdcd6bdff09591a93fa (diff) |
fdo#66024 - Formula Editor: make wide accents stretchy when exported to MathML
Change-Id: Ifd0adc51d79e0673661b5646d27f657768ea5b20
Reviewed-on: https://gerrit.libreoffice.org/4450
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'starmath/source/mathmlexport.cxx')
-rw-r--r-- | starmath/source/mathmlexport.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/starmath/source/mathmlexport.cxx b/starmath/source/mathmlexport.cxx index b2a9b387e840..8df9d28edb2a 100644 --- a/starmath/source/mathmlexport.cxx +++ b/starmath/source/mathmlexport.cxx @@ -1121,6 +1121,15 @@ void SmXMLExport::ExportAttributes(const SmNode *pNode, int nLevel) break; case TOVERSTRIKE: break; + case TWIDETILDE: + case TWIDEHAT: + case TWIDEVEC: + { + // make these wide accents stretchy + AddAttribute(XML_NAMESPACE_MATH, XML_STRETCHY, XML_TRUE); + ExportNodes(pNode->GetSubNode(0), nLevel+1); + } + break; default: ExportNodes(pNode->GetSubNode(0), nLevel+1); break; |