Apache OpenOffice (AOO) Bugzilla – Issue 98859
Custom animation "Change Font Size" cannot save font size setting
Last modified: 2009-07-16 11:16:10 UTC
[Steps] 1. Create an Impress doc. 2. Apply "Title Slide" layout, and type several words in the text area. Select the words, add custom animation "Change Font Size" to them, and set tiny, smaller or extra large in "Font size" of the animation. Save and close the Impress doc. 3. Reopen the Impress doc, switch to Custom Animation bar and click the animation which added in step 2. [Result] The "Font size" setting becomes gray, and the animation doesn't have effection when play. [Addition] Once you edit the "Font size" in "Change Font Size" animation, save and reload the doc will lead to lost the "Font size" setting. But if add "Change Font Size" animation with default setting, "larger", the "Font size" setting will keep after the doc reload. Tested in DEV300m41 both on Windows and Linux.
Reproducible. Reassigned.
The font size, a value relative to its original size, is written in XMLCharHeightHdl::exportXML (xmloff/source/style/chrhghdl.cxx) as absolute point size (pt). When written correctly (150% is mapped to 1.5pt) then the absolute size is mapped correctly back to the relative size. The exportXML() method, however, can handle only float values. For some reason some relative font sizes like 400% (extra large) is stored as double value in the Any that is passed to exportXML(). The double value is not recognized and therefore an empty string is written to file. Adding support for double values in the exportXML() method fixes this problem. @cl: I am not quite sure whether the absolute/relative conversion is a bug or a feature or whether restricting exportXML() to just float values is a bug or a feature. Can you shed some light on this?
actualle the type was wrong, I replaced it with a double percentage type. fixed in cws impress171 for OOo 3.2
verified in cws, back to qa
Verified in CWS. Found i102534.
Tested in m52. Closed.