/*
- * "$Id: pstops.c,v 1.28 1999/11/03 19:29:29 mike Exp $"
+ * "$Id: pstops.c,v 1.29 1999/11/17 18:27:13 mike Exp $"
*
* PostScript filter for the Common UNIX Printing System (CUPS).
*
}
if (!sloworder)
- end_nup((NumPages + NUp - 1) & (NUp - 1));
+ {
+ if (NumPages & (NUp - 1))
+ end_nup(NUp - 1);
+ else
+ end_nup(0);
+ }
if (slowcollate || sloworder)
{
end_nup(number);
}
+ if (NumPages & (NUp - 1))
+ end_nup(NUp - 1);
+ else
+ end_nup(0);
+
Copies --;
}
}
end_nup(NumPages - 1 - number);
}
+ if (NumPages & (NUp - 1))
+ end_nup(NUp - 1);
+ else
+ end_nup(0);
+
Copies --;
}
while (Copies > 0 || !slowcollate);
/*
- * End of "$Id: pstops.c,v 1.28 1999/11/03 19:29:29 mike Exp $".
+ * End of "$Id: pstops.c,v 1.29 1999/11/17 18:27:13 mike Exp $".
*/