Bug 125668 - FILEOPEN: PPTX: Equations are not converted correctly
Summary: FILEOPEN: PPTX: Equations are not converted correctly
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
(earliest affected) release
Hardware: All All
: medium normal
Assignee: Not Assigned
Keywords: filter:pptx
Depends on:
Blocks: OLE-Objects PPTX-Equations
  Show dependency treegraph
Reported: 2019-06-03 19:13 UTC by Devon Powell
Modified: 2023-09-07 19:01 UTC (History)
11 users (show)

See Also:
Crash report or crash signature:

Equation and text formatting (359.88 KB, application/vnd.openxmlformats-officedocument.presentationml.presentation)
2019-06-03 19:14 UTC, Devon Powell
LibreOffice converted (34.23 KB, image/jpeg)
2019-06-03 19:15 UTC, Devon Powell
comparison MSO 2010 and LibreOffice 6.4 Master (62.59 KB, image/png)
2019-11-14 10:58 UTC, Xisco Faulí

Note You need to log in before you can comment on or make changes to this bug.
Description Devon Powell 2019-06-03 19:13:36 UTC
Equations created through MS Equation Too are not converted correctly. Text conversion is also distorted.

Steps to Reproduce:
1.Open attached .pptx document with LibreOffice Impress.

Actual Results:
Formula and text formatting is incorrect

Expected Results:
Formula and text formatting are expected to be correct. 

Reproducible: Always

User Profile Reset: No

Additional Info:
Comment 1 Devon Powell 2019-06-03 19:14:44 UTC
Created attachment 151885 [details]
Equation and text formatting
Comment 2 Devon Powell 2019-06-03 19:15:17 UTC
Created attachment 151886 [details]
LibreOffice converted
Comment 3 V Stuart Foote 2019-06-04 05:42:29 UTC
Confirming on current master/6.4.0alpha0 and builds on Windows 10

There are several issues.

First is font mishandling--because the OOXML is using Cambria Math and assigning Unicode SMP codepoints from the Mathematical Alphanumeric Symbols block. Specifically U+1d465 Mathamatical Italic Small X. Since the LibreOffice formula editor defaults to Liberation Serif for variables it has no coverage of the block, nor is there any font fallback, and the variable from the OLE formula shows a blank when rendered.

But an easy workaround, setting LO formula editor to use the same font as MS Office Equation editor -- Cambria Math, the variable(s) will show on the document canvas.

The other issues on slide one and two of attachment 151885 [details], where a text box using bullets is holding the OLE formulas. 

1) The import filter incorrectly positions and sizes the OLE to the full size of the imported Text box--stretching the formula. Should either keep defaults for LO Formula editor, or better read the font size from the object in XML

2) On filter import LibreOffice displays both the Text box bullets, but also the fallback image (media/image5.png on slide one, and media/image6.png on slide two). And slide two shows "double struck" for the text bullet as the import is positioned incorrectly, that is bug 117658 -- the import filter should do one or the other. Either import the just the image, or import just the bullets of the Text box.

3) On slide two, the Formula OLE for the bullet is not rendered, so only see the fallback image. But by deleting the initial text bullet it allows the Formula OLE to render. So the import filter is not handling the OLE in the text box when other text bullets are present.
Comment 4 V Stuart Foote 2019-06-04 06:08:38 UTC
So handling the formula import from OOXML was done by Michael S. in

And the text boxes with multiple bullets are not parsed, explaining 3).
Comment 5 Xisco Faulí 2019-11-14 10:58:52 UTC
Created attachment 155808 [details]
comparison MSO 2010 and LibreOffice 6.4 Master
Comment 6 Xisco Faulí 2019-11-15 11:37:16 UTC
*** Bug 125123 has been marked as a duplicate of this bug. ***
Comment 7 Timur 2019-12-07 19:07:38 UTC
Let bug 129061 be for inline math (slide 2) and this bug for other issues with formula (slide 1).
Comment 8 QA Administrators 2023-02-15 03:21:02 UTC
Dear Devon Powell,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)

If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword

Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team