Bug 363770: Fix print crash caused by premature release of print engine. r+sr=roc.

This commit is contained in:
sharparrow1%yahoo.com 2006-12-17 21:39:03 +00:00
parent e42b5574fb
commit fe85f89a4d

View File

@ -3298,12 +3298,9 @@ nsPrintEngine::FinishPrintPreview()
/* cleanup done, let's fire-up an error dialog to notify the user
* what went wrong...
*/
SetIsPrintPreview(PR_FALSE);
mPrt->OnEndPrinting();
TurnScriptingOn(PR_TRUE);
FirePrintCompletionEvent();
return CleanupOnFailure(rv, PR_FALSE); // ignore return value here
}