Commit 0d519a60 authored by Thomas Manni's avatar Thomas Manni

app: fix config properties / spin buttons mapping for Convolution Matrix filter

The filter's output is now correct, and rotating/flipping the matrix works as
parent b8abac17
Pipeline #251719 passed with stages
in 33 minutes and 45 seconds
......@@ -42,13 +42,13 @@ convolution_matrix_prop_name (gint x,
gint y)
static const gchar * const prop_names[5][5] = {
{"a1", "a2", "a3", "a4", "a5"},
{"b1", "b2", "b3", "b4", "b5"},
{"c1", "c2", "c3", "c4", "c5"},
{"d1", "d2", "d3", "d4", "d5"},
{"e1", "e2", "e3", "e4", "e5"}};
{"a1", "b1", "c1", "d1", "e1"},
{"a2", "b2", "c2", "d2", "e2"},
{"a3", "b3", "c3", "d3", "e3"},
{"a4", "b4", "c4", "d4", "e4"},
{"a5", "b5", "c5", "d5", "e5"}};
return prop_names[x][y];
return prop_names[y][x];
static void
......@@ -178,7 +178,7 @@ _gimp_prop_gui_new_convolution_matrix (GObject *config,
convolution_matrix_prop_name (x, y),
1.0, 10.0, 2);
gtk_entry_set_width_chars (GTK_ENTRY (spin), 8);
gtk_grid_attach (GTK_GRID (grid), spin, y, x, 1, 1);
gtk_grid_attach (GTK_GRID (grid), spin, x, y, 1, 1);
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