[gimp/multi-stroke: 23/28] app: bug fix in gimp_ink_get_paint_buffer().



commit ca8366b7f2511cd117b512d0c34f1645a6ef0476
Author: Jehan <jehan girinstud io>
Date:   Wed Mar 25 18:14:28 2015 +0100

    app: bug fix in gimp_ink_get_paint_buffer().
    
    It was obviously whether the pointer was not NULL that I needed to test.

 app/paint/gimpink.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/paint/gimpink.c b/app/paint/gimpink.c
index 4a18d3e..057ee05 100644
--- a/app/paint/gimpink.c
+++ b/app/paint/gimpink.c
@@ -238,9 +238,9 @@ gimp_ink_get_paint_buffer (GimpPaintCore    *paint_core,
   x2 = CLAMP ((x + width)  / SUBSAMPLE + 2, 0, dwidth);
   y2 = CLAMP ((y + height) / SUBSAMPLE + 2, 0, dheight);
 
-  if (*paint_width)
+  if (paint_width)
     *paint_width = width / SUBSAMPLE + 3;
-  if (*paint_height)
+  if (paint_height)
     *paint_height = height / SUBSAMPLE + 3;
 
   /*  configure the canvas buffer  */


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