load the channels in the proper order. fixes bug #378003. Thanks to Chris

2006-11-22  Simon Budig  <simon@gimp.org>

	* app/xcf/xcf-load.c: load the channels in the proper order.
	fixes bug #378003. Thanks to Chris Mohler for spotting this.
This commit is contained in:
Simon Budig 2006-11-22 10:19:53 +00:00 committed by Simon Budig
parent 3d17cc6123
commit d3543f1b06
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2006-11-22 Simon Budig <simon@gimp.org>
* app/xcf/xcf-load.c: load the channels in the proper order.
fixes bug #378003. Thanks to Chris Mohler for spotting this.
2006-11-22 Sven Neumann <sven@gimp.org>
* libgimpwidgets/gimpchainbutton.c: code cleanup, seems to fix bug

View File

@ -245,7 +245,8 @@ xcf_load_image (Gimp *gimp,
/* add the channel to the image if its not the selection */
if (channel != image->selection_mask)
gimp_image_add_channel (image, channel, -1);
gimp_image_add_channel (image, channel,
gimp_container_num_children (image->channels));
/* restore the saved position so we'll be ready to
* read the next offset.