Browse Source

fix bug with alpha palettes

David Rose 22 years ago
parent
commit
9bb1585a04
1 changed files with 1 additions and 1 deletions
  1. 1 1
      panda/src/pnmimagetypes/pnmFileTypePNG.cxx

+ 1 - 1
panda/src/pnmimagetypes/pnmFileTypePNG.cxx

@@ -262,7 +262,7 @@ Reader(PNMFileType *type, istream *file, bool owns_file, string magic_number) :
     png_set_palette_to_rgb(_png);
     _maxval = 255;
     _num_channels = 3;
-    return;
+    break;
 
   default:
     pnmimage_png_cat.error()