sc/source/filter/xml/xmlexprt.cxx | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-)
New commits: commit 3b02908486c52a815b65efe93f41cbc53d5452c3 Author: Katarina Behrens <katarina.behr...@cib.de> Date: Mon Dec 14 14:22:20 2015 +0100 tdf#89999: Fix ODF export of sub|superscript text it needs special treatment due to 1 attribute but 2 different MIDs, much like under|overline (fcf5b5c081ded93b) and fonts (48eccfb812284f4) Change-Id: Ib336e8d4de0c3833103d8d13b64971f7c15c725c Reviewed-on: https://gerrit.libreoffice.org/20702 Reviewed-by: Eike Rathke <er...@redhat.com> Reviewed-by: Katarina Behrens <katarina.behr...@cib.de> Tested-by: Katarina Behrens <katarina.behr...@cib.de> diff --git a/sc/source/filter/xml/xmlexprt.cxx b/sc/source/filter/xml/xmlexprt.cxx index c000b1d..3822f76 100644 --- a/sc/source/filter/xml/xmlexprt.cxx +++ b/sc/source/filter/xml/xmlexprt.cxx @@ -1181,10 +1181,22 @@ const SvxFieldData* toXMLPropertyStates( break; case EE_CHAR_ESCAPEMENT: { - if (!static_cast<const SvxEscapementItem*>(p)->QueryValue(aAny, pEntry->mnFlag)) - continue; + sal_Int32 nIndexEsc = xMapper->FindEntryIndex("CharEscapement", XML_NAMESPACE_STYLE, "text-position"); + if (nIndexEsc == -1 || nIndexEsc > nEntryCount) + break; + + sal_Int32 nIndexEscHeight = xMapper->FindEntryIndex("CharEscapementHeight", XML_NAMESPACE_STYLE, "text-position"); + if (nIndexEscHeight == -1 || nIndexEscHeight > nEntryCount) + break; + + const SvxEscapementItem* pEsc = static_cast<const SvxEscapementItem*>(p); + + pEsc->QueryValue(aAny, MID_ESC); + rPropStates.push_back(XMLPropertyState(nIndexEsc, aAny)); + + pEsc->QueryValue(aAny, MID_ESC_HEIGHT); + rPropStates.push_back(XMLPropertyState(nIndexEscHeight, aAny)); - rPropStates.push_back(XMLPropertyState(nIndex, aAny)); } break; case EE_CHAR_EMPHASISMARK: _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits