mirror of https://github.com/GNOME/gimp.git
Issue #11729: Select Previous/Next Layers commands only select one layer.
Somehow it works fine on my machine, but this is very likely the culprit. gimp_image_get_selected_layers() returning directly the pointer to selected layers, we should always make a copy before doing anything which would change this selection!
This commit is contained in:
parent
2da08995c3
commit
31df873d4c
|
@ -607,7 +607,7 @@ layers_select_cmd_callback (GimpAction *action,
|
|||
|
||||
select_type = (GimpActionSelectType) g_variant_get_int32 (value);
|
||||
|
||||
layers = gimp_image_get_selected_layers (image);
|
||||
layers = g_list_copy (gimp_image_get_selected_layers (image));
|
||||
run_once = (g_list_length (layers) == 0);
|
||||
|
||||
for (iter = layers; iter || run_once; iter = iter ? iter->next : NULL)
|
||||
|
@ -637,6 +637,7 @@ layers_select_cmd_callback (GimpAction *action,
|
|||
gimp_image_flush (image);
|
||||
}
|
||||
|
||||
g_list_free (layers);
|
||||
g_list_free (new_layers);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue