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:
@@ -428,15 +428,17 @@ bool GraphicsDriver::printDocument(SpoolData *spool_data)
|
|||||||
success = true;
|
success = true;
|
||||||
page_index = 0;
|
page_index = 0;
|
||||||
if (fPrinterCap->isSupport(PrinterCap::kCopyCommand)) {
|
if (fPrinterCap->isSupport(PrinterCap::kCopyCommand)) {
|
||||||
|
// let the printer perform the copy operation
|
||||||
copies = 1;
|
copies = 1;
|
||||||
} else {
|
} else {
|
||||||
|
// send the page multiple times to the printer
|
||||||
copies = fRealJobData->getCopies();
|
copies = fRealJobData->getCopies();
|
||||||
}
|
}
|
||||||
if (spool_data->startEnum()) {
|
if (spool_data->startEnum()) {
|
||||||
nup = fOrgJobData->getNup();
|
|
||||||
do {
|
do {
|
||||||
DBGMSG(("page index = %d\n", page_index));
|
DBGMSG(("page index = %d\n", page_index));
|
||||||
|
|
||||||
|
nup = fOrgJobData->getNup();
|
||||||
PageDataList pages;
|
PageDataList pages;
|
||||||
do {
|
do {
|
||||||
more = spool_data->enumObject(&page_data);
|
more = spool_data->enumObject(&page_data);
|
||||||
|
|||||||
Reference in New Issue
Block a user