Commit cb78618d authored by Massimo Valentini's avatar Massimo Valentini Committed by Jehan

Bug 783703: no progress bar changes when exporting to psd format

parent 2707236c
......@@ -1137,11 +1137,14 @@ save_layer_and_mask (FILE *fd,
for (i = PSDImageData.nLayers - 1; i >= 0; i--)
{
gimp_progress_update ((PSDImageData.nLayers - i - 1.0) / (PSDImageData.nLayers + 1.0));
IFDBG printf ("\t\tWriting pixel data for layer slot %d\n", i);
write_pixel_data(fd, PSDImageData.lLayers[i].id, ChannelLengthPos[i], 0);
g_free (ChannelLengthPos[i]);
}
gimp_progress_update (PSDImageData.nLayers / (PSDImageData.nLayers + 1.0));
eof_pos = ftell (fd);
/* Write actual size of Layer info section */
......@@ -1611,6 +1614,9 @@ save_image (const gchar *filename,
IFDBG printf ("----- Closing PSD file, done -----\n\n");
fclose (fd);
gimp_progress_update (1.0);
return TRUE;
}
......
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