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



commit a67ba1551b8fb07272dcb0b873b1a3ead79a492f
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 16f2a45..b8fa988 100644
--- a/app/paint/gimpink.c
+++ b/app/paint/gimpink.c
@@ -244,9 +244,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]