Issue 8340 - ∑ Table column widths does not match with total Table width
Summary: ∑ Table column widths does not match with total Table width
Status: CLOSED NOT_AN_OOO_ISSUE
Alias: None
Product: Writer
Classification: Application
Component: code (show other issues)
Version: OOo 1.0.1
Hardware: PC Windows, all
: P4 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords: oooqa
Depends on:
Blocks:
 
Reported: 2002-10-14 23:56 UTC by Unknown
Modified: 2017-05-20 10:11 UTC (History)
4 users (show)

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


Attachments
6 columns on a with the margins set so that there is a text area of 1 inch. (5.02 KB, application/vnd.sun.xml.writer)
2002-10-31 01:19 UTC, prgmgr
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Unknown 2002-10-14 23:56:50 UTC
I use NT 4, SP6

Steps reproduce problem

1) Start a new document in OO Writer
2) Set page width to 1 inch by setting the margin in Format->Page menu. (It's 
not neccesary to do this, but it make you see the bug easier. In my case I use 
Left 1", Right 6.5")
3) Go to menu Insert->Table. Set Column to 50 (make a table with 50 columns). 
Hit OK.
4) Go to menu Format->Table->Columns Tab.
5) Click on that right arrow under "Column width" until the width of the column 
50th shown.

As you will see that from 1 to 49, column widths are 0.02". The width of the 
column 50th is 0.05".
0.02 * 49 + 0.05 = 1.03" This mean the table width is longer than the page 
width 1" as we set above. The issue here that the width of column 50th should 
be 0.02, not 0.05.

After I play with it a little bit, I found the issue is actually a little more 
serious. The bug can reproduce with the same steps as above, but use 6 columns 
instead of 50. This results in column width is .17". 0.17 * 6 = 1.02" > 1.0"
Comment 1 prgmgr 2002-10-31 01:18:54 UTC
Tony, thank you for using and supporting OOo.

Duplicated on Win NT 4.0 SP6a, OOo 643.

When I print the document out, the table is exactly 1 inch.
Comment 2 prgmgr 2002-10-31 01:19:40 UTC
Created attachment 3435 [details]
6 columns on a with the margins set so that there is a text area of 1 inch.
Comment 3 stefan.baltzer 2003-02-14 17:50:54 UTC
Reassigned to Andreas.
Comment 4 andreas.martens 2003-05-30 12:02:05 UTC
I don't see a perfect solution for 6 columns and 1 inch. If we have
two positions after decimal point for displaying, we have to display
0.17. Of course we could display 4x0.17 and 2x0.16 but then it would
look like  different column widths?!
The 50 column problem may be a non optimal calculation/displaying of
the last column, we will have a look at this but with a minor priority.
Comment 5 stefan.baltzer 2003-10-01 18:29:56 UTC
SBA: According to the OpenOffice.org roadmap 
http://tools.openoffice.org/releases
this issue was retargeted to OOo Later.
Comment 6 Oliver Specht 2003-10-06 11:50:59 UTC
.
Comment 7 Rainer Bielefeld 2014-05-02 06:03:15 UTC
Assignee back to list due to facts!

That looks like a normal rounding problem?
With "AOO 4.1.0 Release – German UI / German locale [AOO410m18(Build:9764)  -   Rev. 1589052 2014-04-22 11:43:54]" on German WIN7 Home Premium (64bit)", “historic” 4. User Profile used for all predecessor versions

I see 6 Columns * 0,17              ∑ 1,02 "
      6 Columns * 0,16 " would be   ∑ 0,96 " 
So the display is the optimum what can be reached with 2 decimals?
Comment 8 Rainer Bielefeld 2014-05-02 06:04:04 UTC
Not an issue due to comment above.

Please feel free to reopen if you can contribute comprehensible arguments that we have a real problem here.