diff --git a/gfx/src/mac/nsDeviceContextSpecMac.cpp b/gfx/src/mac/nsDeviceContextSpecMac.cpp index cb6a5f071b2b..e1daca92aa2a 100644 --- a/gfx/src/mac/nsDeviceContextSpecMac.cpp +++ b/gfx/src/mac/nsDeviceContextSpecMac.cpp @@ -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;