https://bugs.documentfoundation.org/show_bug.cgi?id=171507

            Bug ID: 171507
           Summary: FILEOPEN: ChartEx axis majorUnit/minorUnit attributes
                    not imported from cx:valScaling
           Product: LibreOffice
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Chart
          Assignee: [email protected]
          Reporter: [email protected]

When opening a .docx or .pptx file containing a ChartEx chart (cx:chart) with
custom axis scaling, the majorUnit and minorUnit attributes on the
cx:valScaling element are ignored. This causes charts with explicitly set tick
mark intervals to lose their axis scaling on import, falling back to
auto-calculated values.

The model fields (AxisModel::mofMajorUnit, mofMinorUnit) and the converter code
(AxisConverter::convertFromModel) already fully support these values. The
attributes were commented out in CxAxisContext with a TODO noting "need to
implement AttributeList method" for a non-existent getValAxisUnit() method.
Since majorUnit and minorUnit are simple double values (same type as the
already-working max and min attributes), the existing getDouble() method is the
correct approach.

Steps to reproduce:
1. In Microsoft Office, create a chart with custom axis major/minor unit values
2. Save as .docx or .pptx
3. Open in LibreOffice

Expected: Chart axis tick marks match the intervals set in Microsoft Office
Actual: Axis tick intervals fall back to auto-calculated defaults

Gerrit change: https://gerrit.libreoffice.org/c/core/+/202771

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to