From fecfb1dcff70fe6dfc76910e6618a8bd39441822 Mon Sep 17 00:00:00 2001 From: Michael Pfeiffer Date: Sun, 10 Oct 2004 15:42:47 +0000 Subject: [PATCH] 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 --- src/add-ons/print/drivers/shared/libprint/GraphicsDriver.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/add-ons/print/drivers/shared/libprint/GraphicsDriver.cpp b/src/add-ons/print/drivers/shared/libprint/GraphicsDriver.cpp index 4529ab90af..4e21094a5f 100644 --- a/src/add-ons/print/drivers/shared/libprint/GraphicsDriver.cpp +++ b/src/add-ons/print/drivers/shared/libprint/GraphicsDriver.cpp @@ -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);