Commit 45aef9a3 authored by Martin Nordholts's avatar Martin Nordholts

Fix stack overwrites in gimp_paint_options_gui()

svn path=/trunk/; revision=28002
parent 9999ccf7
2009-02-08 Martin Nordholts <martinn@svn.gnome.org>
* app/tools/gimppaintoptions-gui.c: Fix stack overwrites in
gimp_paint_options_gui()
2009-02-08 Michael Natterer <mitch@gimp.org>
Bug 520078 Rotate brushes
......
......@@ -96,7 +96,7 @@ gimp_paint_options_gui (GimpToolOptions *tool_options)
GtkWidget *incremental_toggle = NULL;
gint table_row = 0;
gint n_dynamics = 0;
GtkWidget *dynamics_labels[5];
GtkWidget *dynamics_labels[6];
GType tool_type;
tool_type = tool_options->tool_info->tool_type;
......@@ -192,6 +192,11 @@ gimp_paint_options_gui (GimpToolOptions *tool_options)
n_dynamics++;
}
/* NB: When adding new dynamics, increase size of the
* dynamics_labels[] array
*/
if (n_dynamics > 0)
{
GtkWidget *inner_frame;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment