Kaydet (Commit) 96dcea05 authored tarafından Nikhil Walvekar's avatar Nikhil Walvekar Kaydeden (comit) Miklos Vajna

fdo#73046 DOCX For anchor tag relativeHeight attribute

should be always present.

Change-Id: Ib54651878b6343e2ab8bb11a13c11289dd0f72f6
Reviewed-on: https://gerrit.libreoffice.org/7208Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
Tested-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
üst 6a82f672
...@@ -93,6 +93,9 @@ void DocxSdrExport::startDMLAnchorInline(const SwFrmFmt* pFrmFmt, const Size& rS ...@@ -93,6 +93,9 @@ void DocxSdrExport::startDMLAnchorInline(const SwFrmFmt* pFrmFmt, const Size& rS
attrList->add(XML_allowOverlap, "1"); // TODO attrList->add(XML_allowOverlap, "1"); // TODO
if (const SdrObject* pObj = pFrmFmt->FindRealSdrObject()) if (const SdrObject* pObj = pFrmFmt->FindRealSdrObject())
attrList->add(XML_relativeHeight, OString::number(pObj->GetOrdNum())); attrList->add(XML_relativeHeight, OString::number(pObj->GetOrdNum()));
else
// relativeHeight is mandatory attribute, if value is not present, we must write default value
attrList->add(XML_relativeHeight, "0");
sax_fastparser::XFastAttributeListRef xAttrList(attrList); sax_fastparser::XFastAttributeListRef xAttrList(attrList);
m_pImpl->m_pSerializer->startElementNS(XML_wp, XML_anchor, xAttrList); m_pImpl->m_pSerializer->startElementNS(XML_wp, XML_anchor, xAttrList);
m_pImpl->m_pSerializer->singleElementNS(XML_wp, XML_simplePos, XML_x, "0", XML_y, "0", FSEND); // required, unused m_pImpl->m_pSerializer->singleElementNS(XML_wp, XML_simplePos, XML_x, "0", XML_y, "0", FSEND); // required, unused
......
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