We do not want to skip page ejects when printing the selection

BUg 153964 r=dcone sr=kin
This commit is contained in:
rods%netscape.com 2002-06-25 22:11:56 +00:00
parent 88316a9e93
commit 545f2640f9
2 changed files with 6 additions and 2 deletions

View File

@ -4699,7 +4699,9 @@ DocumentViewerImpl::DoPrint(PrintObject * aPO, PRBool aDoSyncPrinting, PRBool& a
} // switch
} else {
// FrameSets skip page eject only if printing AsIs
skipPageEjectOnly = aPO->mPrintAsIs;
// Also note, that when printing selection is a single document
// we do not want to skip page ejects
skipPageEjectOnly = aPO->mPrintAsIs && printRangeType != nsIPrintSettings::kRangeSelection;
}
// That we are all configured,

View File

@ -4699,7 +4699,9 @@ DocumentViewerImpl::DoPrint(PrintObject * aPO, PRBool aDoSyncPrinting, PRBool& a
} // switch
} else {
// FrameSets skip page eject only if printing AsIs
skipPageEjectOnly = aPO->mPrintAsIs;
// Also note, that when printing selection is a single document
// we do not want to skip page ejects
skipPageEjectOnly = aPO->mPrintAsIs && printRangeType != nsIPrintSettings::kRangeSelection;
}
// That we are all configured,