Apache OpenOffice (AOO) Bugzilla – Issue 19957
length specificed in templates not inherited correctly in instance documents
Last modified: 2013-08-07 14:38:26 UTC
Length you specify in templates is not inherited correctly in instance documents if they include decimal points. That is, if you specify, e.g., 0.5 cm in templates, it becomes 0.499 cm or 0.501 cm in instance documents. This bug is found in all the releases through RC4.
Please explain more about your problem, your information is not enough to investigate the problem. Please explain step by step. Thanks
Suppose certain measures, e.g, margin-left, margin-right, etc. you have specified for paragraph styles in a template include a decimal point (e.g., 0.5 cm vis-a-vis 1 cm); this style info is stored in styles.xml as one of the files comprising the template document. Now you make a new document based on this template. Measures you have specified in the template are not inherited correctly in the document if they have a decimal point: what was, e.g., 0.5 cm in the template becomes 0.449 cm or 0.501 cm in styles.xml of the new document.
Actually the problem is more fundamental. Whenever you specify/modify length as x.5 cm, whether in templates or in documents, it becomes x.499 cm or x.501 cm in styles.xml of these templates and documents. When I wrote my initial comment, I manually corrected x.499 cm to x.5 cm in styles.xml of a template, then applied it to new documents. So I thought by mistake that this was an issue of inheritance. So the summary is not exact. Am I (or someone else) allowed to change it, or is it better to leave it unchanged?
The internal measurement unit in Writer is Twip (twentieth point) which is about 0.017638 mm. Conversions always cause rounding errors. I can't see this as a defect. Additionally: Please take a look at http://www.openoffice.org/issues/bug_status.html#priority to make sure your set an appropriate priority for your issues.
Bugdoc is missing.