Bug 423345: Use mIsCreatingPrintPreview, not mIsDoingPrintPreview, to check if we're setting up a print-preview page. r+sr=vlad a=blocking1.9+

This commit is contained in:
dholbert@cs.stanford.edu 2008-03-19 16:04:40 -07:00
parent 9e7d833654
commit e70fa35d2a

View File

@ -1727,7 +1727,7 @@ nsPrintEngine::SetupToPrintContent()
rv = mPrt->mPrintDC->BeginDocument(docTitleStr, fileName, startPage, endPage);
}
if (mIsDoingPrintPreview) {
if (mIsCreatingPrintPreview) {
// Print Preview -- Pass ownership of docTitleStr and docURLStr
// to the pageSequenceFrame, to be displayed in the header
nsIPageSequenceFrame *seqFrame = nsnull;