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

index 7e39c29223ce91b987e3f1c613536d843725ea63..a6634864ebdd6281a49d1501a24e6ca76157377e 100644 (file)
@@ -501,10 +501,10 @@ static Image *ReadTXTImage(const ImageInfo *image_info,ExceptionInfo *exception)
             break;       
           }
         }
-        if (pixel.colorspace == LabColorspace)
+        if (image->colorspace == LabColorspace)
           {
-            pixel.green+=(range+1)/2.0;
-            pixel.blue+=(range+1)/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);