bug 20943, r=rods, sr=ben, don't put up print dialog in nsDeviceContextSpecMac::Init() if aQuiet is true

This commit is contained in:
pchen%netscape.com 2001-11-18 08:00:04 +00:00
parent a6bfb73bc2
commit bd6b1f6318

View File

@ -328,6 +328,13 @@ NS_IMETHODIMP nsDeviceContextSpecMac::Init(PRBool aQuiet)
{
#if !TARGET_CARBON
if (aQuiet)
{
// If aQuiet is true, then we're being called through
// the print preview path, so don't put up the print dialog.
return NS_ERROR_ABORT;
}
THPrint hPrintRec; // handle to print record
GrafPtr oldport;
PDlgInitUPP theInitProcPtr;