accept grey PNM images (patch 1285885)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35463 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2005-09-11 11:18:36 +00:00
parent 39a7f085a4
commit cdf0ff0ff1

View File

@@ -172,10 +172,12 @@ bool wxPNMHandler::DoCanRead( wxInputStream& stream )
if ( stream.GetC() == 'P' )
{
switch (stream.GetC())
switch ( stream.GetC() )
{
case '3':
case '6':
case '2': // ASCII Grey
case '3': // ASCII RGB
case '5': // RAW Grey
case '6': // RAW RGB
return true;
}
}