mirror of https://github.com/GNOME/gimp.git
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:
parent
e975c1625a
commit
0486b11d5c
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue