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



commit e47b04b70225798affccbf5ad4a803870f44e06c
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]