mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-22 12:32:37 +00:00
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:
parent
c7ae38473f
commit
c46ab36d63
|
@ -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.
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue