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

            Bug ID: 171503
           Summary: FILEOPEN: DrawingML table cells ignore phClr
                    (placeholder color) from theme styles
           Product: LibreOffice
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: filters and storage
          Assignee: [email protected]
          Reporter: [email protected]

When a .docx or .pptx file contains DrawingML tables with theme-based fill
colors using placeholder color references (phClr), LibreOffice renders the
table cells with incorrect colors.

The phClr mechanism (ISO/IEC 29500, ยง20.1.4.1.24) allows table styles to
reference a placeholder color that gets resolved from the table's style
reference at render time. In LibreOffice's import code
(oox/source/drawingml/table/tablecell.cxx), the nPhClr value is correctly
computed from the table's background fill style reference (line ~564), but is
not passed to FillProperties::pushToPropMap(). This causes the theme color to
remain unresolved.

Steps to reproduce:
1. In Microsoft Office, create a document with a table using a theme-based
table style (e.g., any of the built-in colored table styles)
2. Save as .docx
3. Open in LibreOffice Writer

Expected: Table cell backgrounds match the colors shown in Microsoft Office
Actual: Table cell backgrounds render with incorrect/missing colors

Fix: Pass the already-computed nPhClr as the 4th argument to pushToPropMap().

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

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

Reply via email to