https://bugs.documentfoundation.org/show_bug.cgi?id=171502
Bug ID: 171502
Summary: FILEOPEN: SmartArt parTxRTLAlign ignored and vertical
layout scaling rules not applied
Product: LibreOffice
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: filters and storage
Assignee: [email protected]
Reporter: [email protected]
Two issues in SmartArt (DrawingML diagram) import from OOXML files:
1) parTxRTLAlign parameter is ignored in diagram layout atoms. Only
parTxLTRAlign is checked for text alignment. This causes text in RTL SmartArt
diagrams (e.g. Arabic, Hebrew) to always fall back to center alignment instead
of respecting the specified alignment.
2) Layout scaling rules (from dgm:ruleLst) are deliberately discarded for
vertical linear layouts (fromT/fromB direction). The code in
AlgAtom::layoutShape() clears the aChildrenToShrink set for vertical
directions, even though the constraint processing loop already correctly
handles vertical cases (checking XML_h constraints). This causes vertical
SmartArt layouts to not properly scale child shapes.
Both issues are in oox/source/drawingml/diagram/diagramlayoutatoms.cxx.
Steps to Reproduce:
1. Create a SmartArt diagram in MS Word/PowerPoint using a vertical layout with
RTL text alignment
2. Save as .docx/.pptx
3. Open in LibreOffice
Expected: Text alignment matches original, vertical shapes scale correctly
Actual: Text is always centered, vertical layouts ignore scaling rules
Patch: https://gerrit.libreoffice.org/c/core/+/202724
--
You are receiving this mail because:
You are the assignee for the bug.