]> git.imager.perl.org - imager.git/blobdiff - image.c
document the i_comment common tag
[imager.git] / image.c
diff --git a/image.c b/image.c
index b84d05a031c5d6b620ccfcdc5ba8188981e2fa9a..4369bd52da6790a486bd2efff806410a53ef376e 100644 (file)
--- a/image.c
+++ b/image.c
@@ -1236,7 +1236,7 @@ int i_gpixf_fp(i_img *im, i_img_dim x, i_img_dim y, i_fcolor *pix) {
   i_color temp;
   int ch;
 
-  if (i_gpix(im, x, y, &temp)) {
+  if (i_gpix(im, x, y, &temp) == 0) {
     for (ch = 0; ch < im->channels; ++ch)
       pix->channel[ch] = Sample8ToF(temp.channel[ch]);
     return 0;