[gimp/metadata-browser] app: Fix a segfault in paint core
- From: Roman Joost <romanofski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/metadata-browser] app: Fix a segfault in paint core
- Date: Wed, 12 Sep 2012 22:48:45 +0000 (UTC)
commit af7198e493dae1dfed2df1a27a8e38384208995f
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]