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

index e5b79ac181023894da8e5bcde71053e2c56895d1..0d23dd68d2be6ce99b4ca82388d9870bda11cb3e 100644 (file)
@@ -523,8 +523,8 @@ static Image *ReadTXTImage(const ImageInfo *image_info,ExceptionInfo *exception)
           }
         if (image->colorspace == LabColorspace)
           {
-            green+=range/2.0;
-            blue+=range/2.0;
+            green+=(range+1)/2.0;
+            blue+=(range+1)/2.0;
           }
         pixel.red=ScaleAnyToQuantum((QuantumAny) (red+0.5),range);
         pixel.green=ScaleAnyToQuantum((QuantumAny) (green+0.5),range);