revert accidental commit

This commit is contained in:
David Rose 2012-03-28 00:13:58 +00:00
parent 29e5d74613
commit 772e96881b

View File

@ -899,7 +899,6 @@ write_data(xel *array, xelval *alpha) {
switch ( get_color_type() ) {
case CT_color:
case CT_grayscale:
// This call is a bit of fakery to convert our proper 2-d array of
// xels to an indirect 2-d array of pixels. We make it look like a
// single row of _x_size * _y_size pixels.
@ -908,7 +907,7 @@ write_data(xel *array, xelval *alpha) {
// regardless of the number of colors we can read.
chv = ppm_computecolorhist( (pixel **)&array, _x_size * _y_size, 1,
256, &colors );
if ( chv == (colorhist_vector) 0 || true) {
if ( chv == (colorhist_vector) 0 ) {
pnmimage_tiff_cat.debug()
<< colors << " colors found; too many for a palette.\n"
<< "Writing a 24-bit RGB file.\n";
@ -937,12 +936,10 @@ write_data(xel *array, xelval *alpha) {
grayscale = false;
break;
/*
case CT_grayscale:
chv = (colorhist_vector) 0;
grayscale = true;
break;
*/
default:
break;