зеркало из https://github.com/mozilla/pjs.git
Bug 669084 - Crash [@ nsPrintEngine::DoCommonPrint], r=roc
This commit is contained in:
Родитель
461fb99bf8
Коммит
bd2a16c60e
|
@ -3649,6 +3649,7 @@ DocumentViewerImpl::Print(nsIPrintSettings* aPrintSettings,
|
|||
}
|
||||
|
||||
nsPrintEventDispatcher beforeAndAfterPrint(mDocument);
|
||||
NS_ENSURE_STATE(!GetIsPrinting());
|
||||
// If we are hosting a full-page plugin, tell it to print
|
||||
// first. It shows its own native print UI.
|
||||
nsCOMPtr<nsIPluginDocument> pDoc(do_QueryInterface(mDocument));
|
||||
|
@ -3722,6 +3723,7 @@ DocumentViewerImpl::PrintPreview(nsIPrintSettings* aPrintSettings,
|
|||
NS_ENSURE_STATE(doc);
|
||||
|
||||
nsPrintEventDispatcher beforeAndAfterPrint(doc);
|
||||
NS_ENSURE_STATE(!GetIsPrinting());
|
||||
if (!mPrintEngine) {
|
||||
mPrintEngine = new nsPrintEngine();
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче