[Libreoffice] [PATCH] bug 36874 Label PRINTING misplaced on paper sheet

Winfried Donkers W.Donkers at dci-electronics.nl
Wed Dec 7 06:58:10 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 may be a further improvement ...
After further thinking I now believe that the best way solve possible further problem with page size and labels is to add page height 
and width to the label definitions (/core/officecfg/registry/data/org/openoffice/Office/Labels.xcu). The present definitions can only 
be used for symmetrical label forms (both vertically and horizontally) and there is no margin for rounding errors (e.g. a page width 
or height which is some tenths of a milimeter wrong is possible, which in turn can cause problems with some printers).
Changing the label definitions is too much of an effort for me (code as well as UI needs to be changed), so I'll stick to my current patch.


More information about the LibreOffice mailing list