Fixing
git-svn-id: svn://10.0.0.236/branches/SKYLINE_20020612_BRANCH@127141 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user