These are called as backstops in case a PrnitSettings was not passed in

at the moment these lines are not executed
Part of Bug 126734 r=ducarroz sr=spitzer a=asa
This commit is contained in:
rods%netscape.com 2002-03-23 16:46:00 +00:00
parent f715532b20
commit 05f3ce15a4
2 changed files with 2 additions and 2 deletions

View File

@ -1528,7 +1528,7 @@ NS_IMETHODIMP nsMessenger::DoPrint()
nsCOMPtr<nsIWebBrowserPrint> webBrowserPrint = do_QueryInterface(viewer);
if (webBrowserPrint) {
nsCOMPtr<nsIPrintSettings> printSettings;
webBrowserPrint->GetNewPrintSettings(getter_AddRefs(printSettings));
webBrowserPrint->GetGlobalPrintSettings(getter_AddRefs(printSettings));
rv = webBrowserPrint->Print(printSettings, (nsIWebProgressListener*)nsnull);
}
#ifdef DEBUG_MESSENGER

View File

@ -147,7 +147,7 @@ nsMsgPrintEngine::OnStateChange(nsIWebProgress* aWebProgress,
{
if (!mPrintSettings)
{
mWebBrowserPrint->GetNewPrintSettings(getter_AddRefs(mPrintSettings));
mWebBrowserPrint->GetGlobalPrintSettings(getter_AddRefs(mPrintSettings));
}
mPrintSettings->SetPrintSilent(mCurrentlyPrintingURI != 0);
rv = mWebBrowserPrint->Print(mPrintSettings, (nsIWebProgressListener *)this);