[gimp/multi-stroke: 23/31] app: bug fix in gimp_ink_get_paint_buffer().
- From: Jehan Pagès <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/multi-stroke: 23/31] app: bug fix in gimp_ink_get_paint_buffer().
- Date: Tue, 20 Oct 2015 00:34:38 +0000 (UTC)
commit 5e1e5748636cfeccf9dc61afcc5bab92ba003e06
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]