Fixed bug where pages following the first physical page were omitted.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9274 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Pfeiffer
2004-10-10 15:42:47 +00:00
parent 024bab9721
commit fecfb1dcff
@@ -428,15 +428,17 @@ bool GraphicsDriver::printDocument(SpoolData *spool_data)
success = true;
page_index = 0;
if (fPrinterCap->isSupport(PrinterCap::kCopyCommand)) {
// let the printer perform the copy operation
copies = 1;
} else {
// send the page multiple times to the printer
copies = fRealJobData->getCopies();
}
if (spool_data->startEnum()) {
nup = fOrgJobData->getNup();
do {
DBGMSG(("page index = %d\n", page_index));
nup = fOrgJobData->getNup();
PageDataList pages;
do {
more = spool_data->enumObject(&page_data);