Fix the order of the imported paths.

2007-05-17  Simon Budig  <simon@gimp.org>

	* plug-ins/common/tiff-load.c: Fix the order of the imported paths.


svn path=/trunk/; revision=22518
This commit is contained in:
Simon Budig 2007-05-17 00:22:11 +00:00 committed by Simon Budig
parent c7ae38473f
commit c46ab36d63
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2007-05-17 Simon Budig <simon@gimp.org>
* plug-ins/common/tiff-load.c: Fix the order of the imported paths.
2007-05-17 Simon Budig <simon@gimp.org>
* plug-ins/common/tiff-save.c: save the paths in the TIFF.

View file

@ -1114,6 +1114,7 @@ load_paths (TIFF *tif, gint image)
guint16 *val16;
gint width, height;
gint path_index;
width = gimp_image_width (image);
height = gimp_image_height (image);
@ -1134,6 +1135,8 @@ load_paths (TIFF *tif, gint image)
if (!TIFFGetField (tif, TIFFTAG_PHOTOSHOP, &n_bytes, &bytes))
return;
path_index = 0;
pos = 0;
while (pos < n_bytes)
@ -1183,7 +1186,8 @@ load_paths (TIFF *tif, gint image)
gboolean closed = FALSE;
vectors = gimp_vectors_new (image, name);
gimp_image_add_vectors (image, vectors, -1);
gimp_image_add_vectors (image, vectors, path_index);
path_index++;
while (rec < pos + len)
{