diff --git a/src/common/imagpnm.cpp b/src/common/imagpnm.cpp index a7775d2a29..74bf466b04 100644 --- a/src/common/imagpnm.cpp +++ b/src/common/imagpnm.cpp @@ -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; } }