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

git-svn-id: svn://10.0.0.236/trunk@217101 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
sharparrow1%yahoo.com
2006-12-17 21:39:03 +00:00
parent 9de31d2467
commit f3db88e798

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
}