To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=100244 Issue #|100244 Summary|Saving PPT as ODP: Parent style not set Component|Presentation Version|OOo 3.0.1 Platform|PC URL| OS/Version|Linux Status|NEW Status whiteboard| Keywords| Resolution| Issue type|DEFECT Priority|P3 Subcomponent|save-export Assigned to|graphicsneedsconfirm Reported by|haggai
------- Additional comments from hag...@openoffice.org Mon Mar 16 17:56:21 +0000 2009 ------- The attached file, fonttest1.ppt, has a slide with some text in Arial. If this file is saved in ODP format using 3.0.1, it will not display correctly in 3.0.1: The font is shown as Times New Roman. The behaviour depends on the version of OOo used to save and load the document: Load fonttest1.ppt in OOo 2.4, save as fonttest1-oo24.odp -> file can be correctly read by OOo 2.4 and 3.0.1. Load fonttest1.ppt in OOo 3.0.1, save as fonttest1-oo3.odp -> file can be correctly read by OOo 2.4, but 3.0.1 displays the wrong font. I had a look at the changes in the file format. If I apply the following change to content.xml in fonttest1-oo3.odp, the font displays correctly in 3.0.1: --- test-oo3/content.xml 2009-03-13 17:58:26.000000000 +0000 +++ test-oo3hacked/content.xml 2009-03-13 18:03:55.000000000 +0000 @@ -9,7 +9,7 @@ <style:style style:name="dp2" style:family="drawing-page"> <style:drawing-page-properties presentation:display-header="true" presentation:display-footer="true" presentation:display-page-number="false" presentation:display-date-time="true"/> </style:style> - <style:style style:name="gr1" style:family="graphic"> + <style:style style:name="gr1" style:family="graphic" style:parent-style-name="standard"> <style:graphic-properties draw:stroke="none" draw:fill="solid" draw:fill-color="#ffffff" draw:textarea-horizontal-align="justify" draw:textarea-vertical-align="top" draw:auto-grow-height="true" fo:padding-top="0.13cm" fo:padding-bottom="0.13cm" fo:padding-left="0.25cm" fo:padding-right="0.25cm" fo:wrap-option="no-wrap" draw:shadow="hidden" draw:shadow-color="#808080"/> </style:style> <style:style style:name="gr2" style:family="graphic"> So adding the tag 'style:parent-style-name="standard"' would work, but there is another solution - to use the same import logic as in 2.4. I haven't looked at the XML for this in detail. I'll attach these files: fonttest1.ppt - original in PPT format fonttest1-oo24.odp - saved using OOo 2.4, loads correctly in 2.4 and 3.0.1 fonttest1-oo3.odp - saved using OOo 3.0.1, only loads correctly in 2.4 fonttest1-oo3-hacked.odp - added style:parent-style-name to fonttest1-oo3.odp, loads correctly in 2.4 and 3.0.1. --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@graphics.openoffice.org For additional commands, e-mail: issues-h...@graphics.openoffice.org --------------------------------------------------------------------- To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org For additional commands, e-mail: allbugs-h...@openoffice.org