]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/imagpnm.cpp
don't crash on weird line endings like \r\r\n
[wxWidgets.git] / src / common / imagpnm.cpp
index 15b611ee645777adb64fdd40a9b5fed792d7193e..4c1a6205c9fc967041cd44d17c69c7960af090e3 100644 (file)
@@ -20,9 +20,9 @@
 
 #ifndef WX_PRECOMP
     #include "wx/intl.h"
 
 #ifndef WX_PRECOMP
     #include "wx/intl.h"
+    #include "wx/log.h"
 #endif
 
 #endif
 
-#include "wx/log.h"
 #include "wx/txtstrm.h"
 
 //-----------------------------------------------------------------------------
 #include "wx/txtstrm.h"
 
 //-----------------------------------------------------------------------------
@@ -184,4 +184,4 @@ bool wxPNMHandler::DoCanRead( wxInputStream& stream )
 
 #endif // wxUSE_STREAMS
 
 
 #endif // wxUSE_STREAMS
 
-#endif // wxUSE_PNM
+#endif // wxUSE_IMAGE && wxUSE_PNM