]> git.saurik.com Git - wxWidgets.git/commitdiff
accept grey PNM images (patch 1285885)
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 11 Sep 2005 11:18:36 +0000 (11:18 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 11 Sep 2005 11:18:36 +0000 (11:18 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35463 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/imagpnm.cpp

index a7775d2a29662d16404a5c2ad5ad4dcf7fc44915..74bf466b040f64bb5211ac63d5a66ea94edb5515 100644 (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;
         }
     }