tdf#126184 Use max paper dimensions to calculate clip region
commit1dccd6814f1fe7a06f3168d01d18d347269cd3c1
authorMichael Weghorn <m.weghorn@posteo.de>
Thu, 5 Sep 2019 17:09:09 +0000 (5 19:09 +0200)
committerThorsten Behrens <Thorsten.Behrens@CIB.de>
Fri, 6 Sep 2019 20:39:24 +0000 (6 22:39 +0200)
tree941175081fb8b4ec3cafb522911720a436d74510
parent374782be555c1d91628a098c3f1c5cd85f7b0b01
tdf#126184 Use max paper dimensions to calculate clip region

Assuming at least A4 for the page size isn't enough if
e.g. A2 or larger is used, so too much was clipped in that case.

Therefore, use the the maximum paper width/height instead, which
is 6 m by default. This is still far from the 19 km that caused
tdf#63955 and I cannot reproduce tdf#63955 with that new limit.

A big thanks to Regina Henschel for the great analysis in
tdf#126184!

(Side note: Comments 18 and 19 in tdf#63955 suggest to do the whole
 clipping elsewhere, so if anybody wants to take a look at this...)

Change-Id: Iccacad621675df6c7b4477182d7332c4a3d67139
Reviewed-on: https://gerrit.libreoffice.org/78690
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
svx/source/sdr/contact/viewcontactofsdrpathobj.cxx