]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Tue, 27 Nov 2012 02:26:38 +0000 (02:26 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Tue, 27 Nov 2012 02:26:38 +0000 (02:26 +0000)
coders/txt.c

index 4fa176b0a257629e869e3182fcc0b017a61d1b08..7e39c29223ce91b987e3f1c613536d843725ea63 100644 (file)
@@ -503,8 +503,8 @@ static Image *ReadTXTImage(const ImageInfo *image_info,ExceptionInfo *exception)
         }
         if (pixel.colorspace == LabColorspace)
           {
-            pixel.green-=(range+1)/2.0;
-            pixel.blue-=(range+1)/2.0;
+            pixel.green+=(range+1)/2.0;
+            pixel.blue+=(range+1)/2.0;
           }
         pixel.red=ScaleAnyToQuantum((QuantumAny) (red+0.5),range);
         pixel.green=ScaleAnyToQuantum((QuantumAny) (green+0.5),range);