From ab56f524e4ebb244b51d41052e4c44b981b9022a Mon Sep 17 00:00:00 2001 From: Jehan Date: Thu, 4 May 2017 04:59:59 +0200 Subject: [PATCH] app: "Reset to default values" does not properly reset generated... ... brush features. My previous commit only fixed aspect ratio reset, but I realize that much more brush options are affected by defaults of generated brushes (size, hardness, aspect ratio, angle and spacing). Let's reset all these after the basic property reset. --- app/paint/gimppaintoptions.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/app/paint/gimppaintoptions.c b/app/paint/gimppaintoptions.c index 44ebb51c72..17071707e4 100644 --- a/app/paint/gimppaintoptions.c +++ b/app/paint/gimppaintoptions.c @@ -809,8 +809,18 @@ gimp_paint_options_reset (GimpConfig *config) parent_config_iface->reset (config); if (brush) - gimp_paint_options_set_default_brush_aspect_ratio (GIMP_PAINT_OPTIONS (config), - brush); + { + gimp_paint_options_set_default_brush_size (GIMP_PAINT_OPTIONS (config), + brush); + gimp_paint_options_set_default_brush_hardness (GIMP_PAINT_OPTIONS (config), + brush); + gimp_paint_options_set_default_brush_aspect_ratio (GIMP_PAINT_OPTIONS (config), + brush); + gimp_paint_options_set_default_brush_angle (GIMP_PAINT_OPTIONS (config), + brush); + gimp_paint_options_set_default_brush_spacing (GIMP_PAINT_OPTIONS (config), + brush); + } } GimpPaintOptions *