Issue 19957 - length specificed in templates not inherited correctly in instance documents
Summary: length specificed in templates not inherited correctly in instance documents
Status: CLOSED FIXED
Alias: None
Product: Writer
Classification: Application
Component: code (show other issues)
Version: OOo 1.1 RC4
Hardware: PC Windows XP
: P3 Trivial (vote)
Target Milestone: ---
Assignee: h.ilter
QA Contact: issues@sw
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-23 23:51 UTC by Unknown
Modified: 2013-08-07 14:38 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Unknown 2003-09-23 23:51:50 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.
Comment 1 utomo99 2003-09-24 07:07:08 UTC
Please explain more about your problem, your information is not enough 
to investigate the problem. Please explain step by step. Thanks
Comment 2 Unknown 2003-09-24 08:07:52 UTC
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.
Comment 3 Unknown 2003-09-24 08:16:39 UTC
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?
Comment 4 Oliver Specht 2003-09-24 08:27:09 UTC
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.
Comment 5 h.ilter 2004-03-24 15:03:33 UTC
Bugdoc is missing.