From b5c239b908d86f8899f13dd566ca572d878c46e2 Mon Sep 17 00:00:00 2001 From: "pavlov%pavlov.net" Date: Sat, 11 Feb 2006 07:45:40 +0000 Subject: [PATCH] fixing linux printing bustage from earlier checkin. bug 326760. --- gfx/src/gtk/nsDeviceContextGTK.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/gfx/src/gtk/nsDeviceContextGTK.cpp b/gfx/src/gtk/nsDeviceContextGTK.cpp index fb5c166698f0..b1b68e1b3a55 100644 --- a/gfx/src/gtk/nsDeviceContextGTK.cpp +++ b/gfx/src/gtk/nsDeviceContextGTK.cpp @@ -539,7 +539,7 @@ NS_IMETHODIMP nsDeviceContextGTK::GetDeviceContextFor(nsIDeviceContextSpec *aDev { nsresult rv; -#ifdef HAVE_NSDEVICECONTEXTSPECGTK +#if 0 PrintMethod method; nsDeviceContextSpecGTK *spec = NS_STATIC_CAST(nsDeviceContextSpecGTK *, aDevice); @@ -571,9 +571,10 @@ NS_IMETHODIMP nsDeviceContextGTK::GetDeviceContextFor(nsIDeviceContextSpec *aDev } else #endif /* USE_XPRINT */ +#endif #ifdef USE_POSTSCRIPT - if (method == pmPostScript) { // PostScript -#endif /* HAVE_NSDEVICECONTEXTSPECGTK */ +// if (method == pmPostScript) // PostScript + { // default/PS static NS_DEFINE_CID(kCDeviceContextPS, NS_DEVICECONTEXTPS_CID); @@ -596,11 +597,9 @@ NS_IMETHODIMP nsDeviceContextGTK::GetDeviceContextFor(nsIDeviceContextSpec *aDev rv = dcps->QueryInterface(NS_GET_IID(nsIDeviceContext), (void **)&aContext); return rv; -#ifdef HAVE_NSDEVICECONTEXTSPECGTK } #endif /* USE_POSTSCRIPT */ -#endif /* HAVE_NSDEVICECONTEXTSPECGTK */ NS_WARNING("no print module created."); return NS_ERROR_UNEXPECTED; }