diff options
Diffstat (limited to 'sw/source/filter')
-rw-r--r-- | sw/source/filter/ww8/docxattributeoutput.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx index 144469810097..4f0c67f3ce99 100644 --- a/sw/source/filter/ww8/docxattributeoutput.cxx +++ b/sw/source/filter/ww8/docxattributeoutput.cxx @@ -1049,14 +1049,14 @@ void DocxAttributeOutput::PopulateFrameProperties(const SwFrameFormat* pFrameFor attrList->add( FSNS( XML_w, XML_w), OString::number(nAdjustedWidth)); attrList->add( FSNS( XML_w, XML_h), OString::number(rSize.Height())); - attrList->add( FSNS( XML_w, XML_x), OString::number(aPos.X)); - const OString relativeFromH = convertToOOXMLHoriOrientRel(rHoriOrient.GetRelationOrient()); const OString relativeFromV = convertToOOXMLVertOrientRel(rVertOrient.GetRelationOrient()); OString aXAlign = convertToOOXMLHoriOrient(rHoriOrient.GetHoriOrient(), /*bIsPosToggle=*/false); OString aYAlign = convertToOOXMLVertOrient(rVertOrient.GetVertOrient()); if (!aXAlign.isEmpty()) attrList->add(FSNS(XML_w, XML_xAlign), aXAlign); + else if (aPos.X) + attrList->add( FSNS( XML_w, XML_x), OString::number(aPos.X)); if (!aYAlign.isEmpty() && relativeFromV != "text") attrList->add(FSNS(XML_w, XML_yAlign), aYAlign); else if (aPos.Y) |