plug-ins: fix dds volume map export with more than 2 layers

In 10b798c198 g_list_next always was used from the beginning of
the layer list for each call for volume map and array export, so
all layers after the first were the same.
This commit is contained in:
Anders Jonsson 2025-03-31 17:30:35 +02:00
parent e975c1625a
commit 0486b11d5c
1 changed files with 2 additions and 2 deletions

View File

@ -1675,7 +1675,7 @@ write_image (FILE *fp,
{
for (i = 0, list = layers;
i < num_layers;
++i, list = g_list_next (layers))
++i, list = g_list_next (list))
{
write_layer (fp, image, list->data, config,
w, h, bpp, fmtbpp, 1);
@ -1690,7 +1690,7 @@ write_image (FILE *fp,
{
for (i = 0, list = layers;
i < num_layers;
++i, list = g_list_next (layers))
++i, list = g_list_next (list))
{
if ((gimp_drawable_get_width (list->data) == w) &&
(gimp_drawable_get_height (list->data) == h))