From 0f0e8cb677d7d16f657bfed3e02bdd6f6cd62913 Mon Sep 17 00:00:00 2001 From: Florian Heinrich Date: Tue, 16 Jun 2020 16:27:11 +0200 Subject: [PATCH] Fixed typo in bitdepth code --- libvips/foreign/vips2tiff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libvips/foreign/vips2tiff.c b/libvips/foreign/vips2tiff.c index 191fdf41..e7adff00 100644 --- a/libvips/foreign/vips2tiff.c +++ b/libvips/foreign/vips2tiff.c @@ -1041,7 +1041,7 @@ ready_to_write( Wtiff *wtiff ) /* "squash" float LAB down to LABQ. */ - if( (wtiff->bitdepth && + if( wtiff->bitdepth && wtiff->input->Bands == 3 && wtiff->input->BandFmt == VIPS_FORMAT_FLOAT && wtiff->input->Type == VIPS_INTERPRETATION_LAB ) {