diff --git a/content/base/src/nsDocumentViewer.cpp b/content/base/src/nsDocumentViewer.cpp index bbb2f3a7c4f9..688744064b51 100644 --- a/content/base/src/nsDocumentViewer.cpp +++ b/content/base/src/nsDocumentViewer.cpp @@ -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, diff --git a/layout/base/nsDocumentViewer.cpp b/layout/base/nsDocumentViewer.cpp index bbb2f3a7c4f9..688744064b51 100644 --- a/layout/base/nsDocumentViewer.cpp +++ b/layout/base/nsDocumentViewer.cpp @@ -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,