]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/dcprint.cpp
compilation fix for PCH-less compilation after last commit
[wxWidgets.git] / src / msw / dcprint.cpp
index 2450426227b35d3390cfbf08097eeadcf56085fc..4b514b9e321e8556fbaeabc701ee4b3f370ca52e 100644 (file)
@@ -193,15 +193,13 @@ bool wxPrinterDC::StartDoc(const wxString& message)
     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;
     }
 
-    return (ret > 0);
+    return true;
 }
 
 void wxPrinterDC::EndDoc()