[gimp/gimp-2-10] Compare counter value instead its pointer address



commit 8bb4b722c8e3acf2559c972f0656b0b612b1a6d9
Author: qarmin <mikrutrafal54 gmail com>
Date:   Thu Apr 30 14:56:30 2020 +0200

    Compare counter value instead its pointer address
    
    (cherry picked from commit be5d23bf9895a5cf59dbaddcacfd5c9ee2669548)

 app/core/gimplineart.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/app/core/gimplineart.c b/app/core/gimplineart.c
index 7e172f8b7c..bf8460cdc4 100644
--- a/app/core/gimplineart.c
+++ b/app/core/gimplineart.c
@@ -2451,7 +2451,7 @@ gimp_line_art_simple_fill (GeglBuffer *buffer,
 
   if (x < 0 || x >= gegl_buffer_get_width (buffer)  ||
       y < 0 || y >= gegl_buffer_get_height (buffer) ||
-      counter <= 0)
+      *counter <= 0)
     return;
 
   gegl_buffer_sample (buffer, x, y, NULL, &val,


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