From 05f3ce15a4cea7a9d10e1d51176f235527320244 Mon Sep 17 00:00:00 2001 From: "rods%netscape.com" Date: Sat, 23 Mar 2002 16:46:00 +0000 Subject: [PATCH] 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 --- mailnews/base/src/nsMessenger.cpp | 2 +- mailnews/base/src/nsMsgPrintEngine.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mailnews/base/src/nsMessenger.cpp b/mailnews/base/src/nsMessenger.cpp index ca3f46a19fdd..1ea949b6728a 100644 --- a/mailnews/base/src/nsMessenger.cpp +++ b/mailnews/base/src/nsMessenger.cpp @@ -1528,7 +1528,7 @@ NS_IMETHODIMP nsMessenger::DoPrint() nsCOMPtr webBrowserPrint = do_QueryInterface(viewer); if (webBrowserPrint) { nsCOMPtr printSettings; - webBrowserPrint->GetNewPrintSettings(getter_AddRefs(printSettings)); + webBrowserPrint->GetGlobalPrintSettings(getter_AddRefs(printSettings)); rv = webBrowserPrint->Print(printSettings, (nsIWebProgressListener*)nsnull); } #ifdef DEBUG_MESSENGER diff --git a/mailnews/base/src/nsMsgPrintEngine.cpp b/mailnews/base/src/nsMsgPrintEngine.cpp index c1e02703c892..af85b54ad42d 100644 --- a/mailnews/base/src/nsMsgPrintEngine.cpp +++ b/mailnews/base/src/nsMsgPrintEngine.cpp @@ -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);