corrected StartDoc() return value testing broken in last commit
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44506 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -193,7 +193,7 @@ bool wxPrinterDC::StartDoc(const wxString& message)
|
|||||||
if (!m_hDC)
|
if (!m_hDC)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if ( ::StartDoc(GetHdc(), &docinfo) < 0 )
|
if ( ::StartDoc(GetHdc(), &docinfo) <= 0 )
|
||||||
{
|
{
|
||||||
wxLogLastError(wxT("StartDoc"));
|
wxLogLastError(wxT("StartDoc"));
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user