Apache OpenOffice (AOO) Bugzilla – Issue 27878
page width > 640mm forces short header left-aligned
Last modified: 2013-08-07 14:38:26 UTC
For a page width of > 640mm (e.g. A0), alignments have no effect in the header. It is always left-aligned. This applies to a short header word. By adding characters the header at some specific length (I didn't count) switches to the correct alignment.
The behavior is not bound to the header.
Hi antares, thanks for using and supporting openOffice.org... I tried this with OOo1.1.2RC and with 680m34 and the described effect appeared in both version... reassigned to fme... @fme: Hi fme, I think this could be something for you. Please take over and /or dispatch if this isn't anyything for you... The effect appeared in 2 cases: - using words shorter than 4 characters - fontsize smaller and /or equal 12 Thanks
*** Issue 68306 has been marked as a duplicate of this issue. ***
You guys probably know this already, but this looks suspiciously like a 16-bit integer overflow. With my sample doc on Issue 68306, using a page width of 30" with 0.79" margins, the threshold for a properly aligned string seems to be about 5.6". The horizontal offset would be: page text area width - string width / 2 30.0"-0.79"-0.79"-5.6" = 22.82" / 2 22.82" is 32861 twips, or a large negative value if stored as a signed 16-bit int. The same calculation would be done for right-alignment, which fails in the same way. If this is correct, the problem should never occur on pages with a page text area width of less than 22.75" (32767 twips).
I am having the same problem. I am attempting to create a large poster file (40 in x 30 in), and I cannot center the title. I am using 80 pt font. With 33 characters, it will not center or right align. However, with 34 or more, it will. I have a attached a sample file. The first phrase contains 33 characters, and the second contains 34. The margins are default (0.79 inches all around). It would be great if this could be fixed relatively soon, as this can be a deal-breaker for some people who want to use OOoWriter.
Created attachment 49637 [details] The demonstrates the alignment problem.
forgot to add that I am using version 2.2.1
starfoxccc: The workaround for this is to use Draw for large-format documents. Draw will accept page sizes up to 3mx3m, or you can create the document at a smaller size and scale it up to the paper size when you print.
This is still a problem in writer 3.0. The work around mentioned using Draw won't work if you need to use mailmerge. This problem also occurs in frames. You can make the frame expand and you won't have the problem on the first line. But if you go into two lines when the frame expands the second line will be left justified and the first line centered (if the second line leaves the 22.8" combined left and right spacing.
*** Issue 106078 has been marked as a duplicate of this issue. ***
Bug still present in OpenOffice 3.1.0. I observe precisely the same effect that starfoxccc has described. A simple work-around, by the way, is to pad the text with the same number of spaces to either end to make the line long enough to avoid the overflow.
*** Issue 107133 has been marked as a duplicate of this issue. ***