https://bugs.documentfoundation.org/show_bug.cgi?id=173480
--- Comment #4 from Eyal Rozenberg <[email protected]> --- I've repeated the reproduction instructions, but - saved once as FODT, then saved as DOCX and opened, then saved as FODT again. Let's compare the paragraph with the rectangle in both files: Original FODT: <text:p text:style-name="Standard"> <draw:custom-shape text:anchor-type="paragraph" draw:z-index="0" draw:name="Shape 1" draw:style-name="gr1" svg:width="3.278cm" svg:height="1.648cm" svg:x="0.275cm" svg:y="0.82cm"> <text:p>Rectangle</text:p> <draw:enhanced-geometry svg:viewBox="0 0 21600 21600" draw:type="rectangle" draw:enhanced-path="M 0 0 L 21600 0 21600 21600 0 21600 0 0 Z N"/> </draw:custom-shape> </text:p> Post-DOCX FODT: <text:p text:style-name="P1"> <draw:custom-shape text:anchor-type="char" draw:z-index="0" draw:name="Shape 1" draw:style-name="gr1" draw:text-style-name="P3" svg:width="3.278cm" svg:height="1.648cm" svg:x="0.275cm" svg:y="0.82cm"> <text:p text:style-name="P2">Rectangle</text:p> <draw:enhanced-geometry draw:mirror-horizontal="false" draw:mirror-vertical="false" draw:glue-points="?f0 0 0 ?f1 ?f0 ?f2 ?f3 ?f1" draw:text-areas="0 0 ?f3 ?f2" svg:viewBox="0 0 0 0" draw:type="ooxml-rect" draw:enhanced-path="M 0 0 L ?f3 0 ?f3 ?f2 0 ?f2 Z N"> <draw:equation draw:name="f0" draw:formula="logwidth/2"/> <draw:equation draw:name="f1" draw:formula="logheight/2"/> <draw:equation draw:name="f2" draw:formula="logheight"/> <draw:equation draw:name="f3" draw:formula="logwidth"/> </draw:enhanced-geometry> </draw:custom-shape> </text:p> There are all sorts of round-trip issues here, but - note the anchor-type! It used to be "paragraph", now it's "char". How come? And note that, when we set a new document to have RTL page style - this does immediately affect the paragraph, since in the default template (at least on mine), the Default Paragraph Style has the direction set explicitly rather than to inherit. Maybe that is where the Left-vs-Start, Right-vs-End duality bites us? -- You are receiving this mail because: You are the assignee for the bug.
