git-svn-id: svn://10.0.0.236/branches/SKYLINE_20020612_BRANCH@127141 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
blakeross%telocity.com
2002-08-13 06:52:53 +00:00
parent 2f717f0e19
commit f35b23ac6e

View File

@@ -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);