We broke page chopping in 4.1.6. This patch repairs the damage by making
MaxPageLength stay consistently cast as u_short. Thanks to Lee and Aidan
for getting to the bottom of this one!
* accepting variable-length pages.
*/
u_int pagechop;
- if (info.getMaxPageLengthInMM() == (unsigned)-1) {
+ if (info.getMaxPageLengthInMM() == (u_short)-1) {
pagechop = req.pagechop;
if (pagechop == FaxRequest::chop_default)
pagechop = pageChop;
* vertical resolution. Note that if the resolution
* info is bogus, we may select the wrong page size.
*/
- if (info.getMaxPageLengthInMM() != (unsigned)-1) {
+ if (info.getMaxPageLengthInMM() != (u_short)-1) {
uint32 h;
TIFFGetField(tif, TIFFTAG_IMAGELENGTH, &h);
params.setPageLengthInMM((u_int)(h / yres));