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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user