Skip to content

fix: preserve background color for odt#122

Open
DmySyz wants to merge 1 commit into
mainfrom
fix/background-color-odf
Open

fix: preserve background color for odt#122
DmySyz wants to merge 1 commit into
mainfrom
fix/background-color-odf

Conversation

@DmySyz

@DmySyz DmySyz commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Summary

When reading an ODT, the code only checked the default page layout for fo:background-color. If the background was defined on a non-default master page it was silently ignored and nothing got written to the DOCY binary.

With this change it iterates over all master pages until one with fo_background_color_ is found and use that.

Test

Manually tested both end-to-end and with x2t only.

Notes

Assisted-by: ClaudeCode:claude-sonnet-4-6

@DmySyz DmySyz requested a review from a team as a code owner July 15, 2026 15:43
@DmySyz DmySyz requested review from Aiiaiiio and chrip and removed request for a team July 15, 2026 15:43
@DmySyz DmySyz force-pushed the fix/background-color-odf branch from 281820e to f3a2319 Compare July 15, 2026 15:47
Signed-off-by: dsyzov <dmytro.syzov@nextcloud.com>
@DmySyz DmySyz force-pushed the fix/background-color-odf branch from f3a2319 to 641b729 Compare July 15, 2026 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant