Fix for printing bug 1748705.
This commit is contained in:
parent
c00036fac1
commit
9036c8b4ea
1 changed files with 8 additions and 3 deletions
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue