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.
This commit is contained in:
Jehan
2017-05-04 04:59:59 +02:00
parent 129a0e4bcd
commit ab56f524e4

View File

@ -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 *