git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44505
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
if (!m_hDC)
return false;
if (!m_hDC)
return false;
- int ret = ::StartDoc(GetHdc(), &docinfo);
-
- if (ret <= 0)
+ if ( ::StartDoc(GetHdc(), &docinfo) < 0 )
- DWORD lastError = GetLastError();
- wxLogDebug(wxT("wxDC::StartDoc failed with error: %ld\n"), lastError);
+ wxLogLastError(wxT("StartDoc"));
+ return false;
}
void wxPrinterDC::EndDoc()
}
void wxPrinterDC::EndDoc()