[gimp] app: Fix a segfault in paint core



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]