From 681068ff37695ba39ed9f0e6ea37e755673f5759 Mon Sep 17 00:00:00 2001 From: cristy Date: Thu, 3 Jul 2014 12:48:42 +0000 Subject: [PATCH] --- coders/txt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coders/txt.c b/coders/txt.c index 78f7a5676..e5b79ac18 100644 --- a/coders/txt.c +++ b/coders/txt.c @@ -739,8 +739,8 @@ static MagickBooleanType WriteTXTImage(const ImageInfo *image_info,Image *image, GetPixelInfoPixel(image,p,&pixel); if (pixel.colorspace == LabColorspace) { - pixel.green-=QuantumRange/2.0; - pixel.blue-=QuantumRange/2.0; + pixel.green-=(QuantumRange+1)/2.0; + pixel.blue-=(QuantumRange+1)/2.0; } if (LocaleCompare(image_info->magick,"SPARSE-COLOR") == 0) { -- 2.40.0