icon-slicer (0.3-5) 1001_hotspotfix.patch

Summary

 src/main.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

    
download this patch

Patch contents

Description: Fix hotspot y coordinate
Author: Tim Swast <tswast@gmail.com>
diff -ruN a/src/main.c b/src/main.c
--- a/src/main.c
+++ b/src/main.c
@@ -103,7 +103,7 @@
   if (n_channels == 3)
     {
       out->x = start_x;
-      out->y = start_x;
+      out->y = start_y;
       out->width = source->gridsize;
       out->height = source->gridsize;
       
@@ -137,8 +137,8 @@
 		    {
 		      min_x = start_x + i;
 		      max_x = start_x + i + 1;
-		      min_y = start_y + i;
-		      max_y = start_y + i + 1;
+		      min_y = start_y + j;
+		      max_y = start_y + j + 1;
 
 		      found = TRUE;
 		    }