[gimp] app: Fix a segfault in paint core
- From: Alexia Death <alexiade src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: Fix a segfault in paint core
- Date: Thu, 9 Feb 2012 20:00:02 +0000 (UTC)
commit f0a7d04cfa9c49c8d0df7058a0ad11102aa9dee0
Author: Alexia Death <alexiadeath gmail com>
Date: Thu Feb 9 21:56:36 2012 +0200
app: Fix a segfault in paint core
app/paint/gimppaintoptions.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/app/paint/gimppaintoptions.c b/app/paint/gimppaintoptions.c
index 67724e0..10430a2 100644
--- a/app/paint/gimppaintoptions.c
+++ b/app/paint/gimppaintoptions.c
@@ -705,6 +705,9 @@ gimp_paint_options_get_brush_mode (GimpPaintOptions *paint_options)
force_output = gimp_dynamics_get_output (dynamics,
GIMP_DYNAMICS_OUTPUT_FORCE);
+ if (!force_output)
+ return GIMP_BRUSH_SOFT;
+
if (gimp_dynamics_output_is_enabled (force_output))
return GIMP_BRUSH_PRESSURE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]