Bug 98704 - formula lost after saving to Microsoft Powerpoint pptx file
Summary: formula lost after saving to Microsoft Powerpoint pptx file
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
5.1.1.3 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:pptx
Depends on:
Blocks:
 
Reported: 2016-03-16 09:14 UTC by Drew Parsons
Modified: 2016-11-14 15:59 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
trival example, odp file (14.62 KB, application/vnd.oasis.opendocument.presentation)
2016-03-16 09:14 UTC, Drew Parsons
Details
trvial example, saved as Microsoft Powerpoint 2007-2013 XML .pptx (35.00 KB, application/vnd.openxmlformats-officedocument.presentationml.presentation)
2016-03-16 09:15 UTC, Drew Parsons
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Drew Parsons 2016-03-16 09:14:54 UTC
Created attachment 123622 [details]
trival example, odp file

I add equation formulas to a presentation document in OpenOffice Impress and save as pptx ("Microsoft Powerpoint 2007-2013 XML").

When I then open the pptx file in OpenOffice, the formula is lost, blank.  The box for the formula is still there, I can find it by pressing tab. But it is empty and it cannot be edited.

I am attaching a trivial example with a new default presentation (no template), adding one formula (just to the right of the text "Formula:"), y=x^2.  I saved the document from LibreOffice first as odp, and then saved as pptx.

Microsoft Office 2010 (14.0.6023.1000 32 bit) can read both the odp and the pptx file with some success.  Office says both are damaged and tries to repair them.  It shows the odp properly formatted after repairing.  Office shows the pptx file after repairing, but misrenders the formula as
  y
  =x^2
instead of
  y=x^2

But LibreOffice does not show the formula in the pptx file at all. (It reads the odp file fine, of course)
Comment 1 Drew Parsons 2016-03-16 09:15:55 UTC
Created attachment 123623 [details]
trvial example, saved as Microsoft Powerpoint 2007-2013 XML .pptx
Comment 2 raal 2016-03-17 10:20:55 UTC
I can not confirm with LO Version: 5.2.0.0.alpha0+, win7. After save as pttx and reopen in LO is formula correct. Powerpoint2010 can open the file without warnings.

Seems to be fixed with dev version. Please could you test it with dev version?  You can download it here: http://dev-builds.libreoffice.org/daily/master/
Thanks
Comment 3 Xisco Faulí 2016-10-10 11:24:25 UTC Comment hidden (obsolete)
Comment 4 Drew Parsons 2016-10-10 14:56:17 UTC
You're right, the problem seems to be fixed in LO 5.2.  

The equation in the test pptx document "y=x^2" is now showing more or less the same as in the odp document (with a minor shift in font size and placement).

This latest test is on LibreOffice Version: 5.2.2.2.0+,
Build ID: 1:5.2.2~rc2-2
Comment 5 arnaud.malfoy 2016-10-10 15:14:59 UTC
I have saved both files in ODP and PPTX and I can open them both with Libre Office version 5.2.2.2 and the formula is the same on both. However when I open the PPTX file with WPS Kingsoft(10.1.0.5672) then the formula has disappeared completely.
Comment 6 Buovjaga 2016-11-14 15:59:37 UTC
Confirming pptx saved in LibO works in LibO. Closing as WFM.

Drew: the display difference is because PowerPoint uses a different font and thus the formula box is not wide enough. This causes the formula to be wrapped to two lines.

Win 8.1 32-bit
MSO 2013
LibO Version: 5.3.0.0.alpha1+
Build ID: c5f5b3e5334c52502c1de28828a44ad469c68850
CPU Threads: 4; OS Version: Windows 6.2; UI Render: default; Layout Engine: new; 
TinderBox: Win-x86@62-merge-TDF, Branch:MASTER, Time: 2016-11-14_06:24:19
Locale: fi-FI (fi_FI); Calc: group