commit | 681068ff37695ba39ed9f0e6ea37e755673f5759 | [log] [tgz] |
---|---|---|
author | cristy <urban-warrior@git.imagemagick.org> | Thu Jul 03 12:48:42 2014 +0000 |
committer | cristy <urban-warrior@git.imagemagick.org> | Thu Jul 03 12:48:42 2014 +0000 |
tree | 1adf3c3a8588e97a2f2be1da07bf6273a1d39583 | |
parent | 81bff55e738558fc44a57772c9bc19c24f136cc6 [diff] [blame] |
diff --git a/coders/txt.c b/coders/txt.c index 78f7a56..e5b79ac 100644 --- a/coders/txt.c +++ b/coders/txt.c
@@ -739,8 +739,8 @@ 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) {