Skip to content

Page scaling resets to the default setting #299

@Expurple

Description

@Expurple

Bug description

Page scaling settings reset to the default after opening and closing an xlsx file with umya_spreadsheet.

Expected behavior

Page scaling settings shouldn't change unless I explicitly edit them.

How to reproduce

  1. Create an empty xlsx file.

  2. In LibreOffice Calc, go to Format -> Page Style... -> Sheet -> Scale and put some limit on the printed width and height in pages:

    My settings

    Excel has a similar setting too.

  3. Save and close the file.

  4. Open and close it using umya_spreadsheet, without editing anything.

  5. In the "edited" file, the setting is reset back to its default value:

    Default settings

Here's a full reproducer repo that you can inspect and debug:

umya_layout_repro.zip

Version info

I'm using umya_spreadsheet 2.3.3 (the latest on crates.io) and LibreOffice Calc 25.8.2.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions