[patch] gimp-drawable-get/set-pixel bugfix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi.

I found a bug that gimp-drawable-get/set-pixel swapped the
specified x and y coordinates when getting/setting a pixel.

I found the bug in 1.1.10 but the bug seems not to be fixed in
1.1.11.  Attached is a patch that fixes the bug.

Regards,

-- 
KAJIYAMA, Tamito <kajiyama@xxxxxxxxxxxxxxxxxxxxxxxx>

--- drawable_cmds.c.orig	Thu Oct  7 04:55:27 1999
+++ drawable_cmds.c	Mon Nov  8 17:38:15 1999
@@ -1057,7 +1057,7 @@
 	  x %= TILE_WIDTH;
 	  y %= TILE_WIDTH;
     
-	  p = tile_data_pointer (tile, y, x);
+	  p = tile_data_pointer (tile, x, y);
 	  for (b = 0; b < num_channels; b++)
 	    pixel[b] = p[b];
     
@@ -1167,7 +1167,7 @@
 	  x %= TILE_WIDTH;
 	  y %= TILE_WIDTH;
     
-	  p = tile_data_pointer (tile, y, x);
+	  p = tile_data_pointer (tile, x, y);
 	  for (b = 0; b < num_channels; b++)
 	    *p++ = *pixel++;
     


[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux