Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

equation images have (almost) zero height when a writer document is saved from LO v7.4 #2

Closed
slowphil opened this issue Dec 13, 2022 · 1 comment

Comments

@slowphil
Copy link
Owner

slowphil commented Dec 13, 2022

This bug affects LO writer documents containing equations created with this extension, when they have been saved once from LO 7.4. Note that before the document is saved from LO 7.4, everything looks perfectly fine in LO 7.4, and it does not matter if it's a freshly created document with new equations or editing an existing document from and earlier LO version (even without modifying the equations it contains). Once the document saved from LO 7.4, upon re-opening it in any LO version, all embedded equations in the document are broken.

The issue can be fixed one image at a time, by clicking the restore "original image size" button in the image properties dialog.

It seems somehow related to https://bugs.documentfoundation.org/show_bug.cgi?id=45884, which perhaps is getting worse... It's a matter of how to specify the image should "keep its aspect ratio" in the saved xml document, and how to get that from the basic code. I think I've found a way to fix that, and should be able to commit a fix ASAP.

slowphil added a commit that referenced this issue Dec 14, 2022
@slowphil
Copy link
Owner Author

Update to v0.4 to fix the issue.
Unfortunately, existing writer documents made with the previous version(s) will get broken upon saving with LO 7.4. In case this happens, individual images have to be restored to their original size (re-editing with TeXmacs fixes it too). One could make a macro for automating that ...

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

No branches or pull requests

1 participant