From f35b23ac6e6d0ee268e0053f7e512ccbd7d8a27f Mon Sep 17 00:00:00 2001 From: "blakeross%telocity.com" Date: Tue, 13 Aug 2002 06:52:53 +0000 Subject: [PATCH] Fixing git-svn-id: svn://10.0.0.236/branches/SKYLINE_20020612_BRANCH@127141 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/content/base/src/nsDocumentViewer.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/mozilla/content/base/src/nsDocumentViewer.cpp b/mozilla/content/base/src/nsDocumentViewer.cpp index ff9d218fad3..ad54130d2ee 100644 --- a/mozilla/content/base/src/nsDocumentViewer.cpp +++ b/mozilla/content/base/src/nsDocumentViewer.cpp @@ -1569,6 +1569,14 @@ DocumentViewerImpl::Destroy() mPreviousViewer = nsnull; } + if (mIsSticky) { + // This window is sticky, that means that it might be shown again + // and we don't want the presshell n' all that to be thrown away + // just because the window is hidden. + + return NS_OK; + } + if (mDeviceContext) mDeviceContext->FlushFontCache(); @@ -6125,14 +6133,6 @@ DocumentViewerImpl::PrintPreview(nsIPrintSettings* aPrintSettings) mPrt->mPrintDC->SetTextZoom(1.0f); mPrt->mPrintDC->SetZoom(1.0f); - if (mIsSticky) { - // This window is sticky, that means that it might be shown again - // and we don't want the presshell n' all that to be thrown away - // just because the window is hidden. - - return NS_OK; - } - if (mDeviceContext) { mDeviceContext->SetUseAltDC(kUseAltDCFor_FONTMETRICS, PR_TRUE); mDeviceContext->SetUseAltDC(kUseAltDCFor_CREATERC_REFLOW, PR_TRUE);