[Libreoffice] [PATCH] Label PRINTING misplaced on paper sheet
Winfried Donkers
W.Donkers at dci-electronics.nl
Wed Dec 7 00:22:45 PST 2011
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20111207/adc01f88/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fdo36874.diff
Type: application/octet-stream
Size: 1273 bytes
Desc: fdo36874.diff
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20111207/adc01f88/attachment.obj>
More information about the LibreOffice
mailing list