diff -uNr GMT4.4.0/src/pslib.c GMT4.4.0_noindex/src/pslib.c --- GMT4.4.0/src/pslib.c 2009-02-06 06:53:45.000000000 +0900 +++ GMT4.4.0_noindex/src/pslib.c 2009-05-20 20:25:50.000000000 +0900 @@ -455,8 +455,11 @@ id = ((PSL->internal.color_mode & PSL_CMYK) && abs(nbits) == 24) ? 2 : ((abs(nbits) == 24) ? 1 : 0); it = nx < 0 ? 1 : (nbits < 0 ? 2 : 0); /* Colormask or interpolate */ +/* if ((image = ps_makecolormap (buffer, nx, ny, nbits))) { +*/ /* Creation of colormap was successful */ +/* nbits = ps_bitreduce (image->buffer, nx, ny, image->colormap->ncolors); if (PSL->internal.comments) fprintf (PSL->internal.fp, "\n%% Start of %s Adobe Indexed %s image [%d bit]\n", kind[PSL->internal.ascii], colorspace[id], nbits); @@ -467,12 +470,15 @@ fprintf (PSL->internal.fp, "U\n"); if (PSL->internal.comments) fprintf (PSL->internal.fp, "%% End of %s Adobe Indexed %s image\n", kind[PSL->internal.ascii], colorspace[id]); +*/ /* Clear the newly created image buffer and colormap */ +/* ps_free (image->buffer); ps_free (image->colormap); ps_free (image); } else { +*/ /* Export full RGB or CMYK image */ nbits = abs(nbits); @@ -494,7 +500,9 @@ ps_stream_dump (buffer, nx, ny, nbits, PSL->internal.compress, PSL->internal.ascii, 0); fprintf (PSL->internal.fp, "U\n"); if (PSL->internal.comments) fprintf (PSL->internal.fp, "%% End of %s Adobe %s image\n", kind[PSL->internal.ascii], colorspace[id]); +/* } +*/ } /* fortran interface */