]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Thu, 3 Jul 2014 12:48:42 +0000 (12:48 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Thu, 3 Jul 2014 12:48:42 +0000 (12:48 +0000)
coders/txt.c

index 78f7a5676aec6372c07970890b54189ff0e18d47..e5b79ac181023894da8e5bcde71053e2c56895d1 100644 (file)
@@ -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)
           {