Attached is a patch for bug 36874. It also patches bugs 34271, 35104, 35272 and 41755 which IMHO are duplicates. The old calculaton of page size during the creation of a new document was incorrect, leading to misalignment when printing. I have replaced it with a better (I think) calculation and tested it with all the labels mentioned in the above bugs plus some more. There is one thing that my be a further improvement, but -I haven't found the proper get-method yet; -I don't know if this fits in the policy of LibO. My suggestion is this: It is possible that the label definition is a little bit off from the standard page size (e.g. 0.2mm different height or width compared to A4). I propose to use the standard page size (as set by the user) when the difference in height or width is less than 1mm. I'm willing to add this when someone gives a hint for the proper get-method to obtain the (standard/current) page size Winfried
Attachment:
fdo36874.diff
Description: fdo36874.diff