Fix for printing bug 1748705.

This commit is contained in:
John Popplewell 2007-07-30 00:28:57 +00:00
parent c00036fac1
commit 9036c8b4ea

View file

@ -266,9 +266,14 @@ static HDC GetDefaultPrinterDC(void)
static HDC GetPrinterDC(HWND hWnd, const char *printcfg, int show) static HDC GetPrinterDC(HWND hWnd, const char *printcfg, int show)
{ {
if (!printcfg) if (printcfg)
return GetDefaultPrinterDC(); {
return GetCustomPrinterDC(hWnd, printcfg, show); HDC hdc = NULL;
if ((hdc = GetCustomPrinterDC(hWnd, printcfg, show)) != NULL)
return hdc;
}
return GetDefaultPrinterDC();
} }