mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-09 00:11:44 +00:00
bug 20943, r=rods, sr=ben, don't put up print dialog in nsDeviceContextSpecMac::Init() if aQuiet is true
This commit is contained in:
parent
a6bfb73bc2
commit
bd6b1f6318
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user