]> granicus.if.org Git - imagemagick/blobdiff - coders/txt.c
(no commit message)
[imagemagick] / coders / txt.c
index 7e39c29223ce91b987e3f1c613536d843725ea63..3aa7eaa866921dec5ff4990ca2a8d3177001ad9e 100644 (file)
@@ -17,7 +17,7 @@
 %                                 July 1992                                   %
 %                                                                             %
 %                                                                             %
-%  Copyright 1999-2012 ImageMagick Studio LLC, a non-profit organization      %
+%  Copyright 1999-2013 ImageMagick Studio LLC, a non-profit organization      %
 %  dedicated to making software imaging solutions freely available.           %
 %                                                                             %
 %  You may not use this file except in compliance with the License.  You may  %
@@ -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);