Commit 355322d2 authored by Mukund Sivaraman's avatar Mukund Sivaraman Committed by Mukund Sivaraman

save the layer offsets too, to fix bug #419578.

2007-04-26  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/tiff-save.c: save the layer offsets too, to
        fix bug #419578.


svn path=/trunk/; revision=22340
parent b69355a2
2007-04-26 Mukund Sivaraman <muks@mukund.org>
* plug-ins/common/tiff-save.c: save the layer offsets too, to
fix bug #419578.
2007-04-26 Mukund Sivaraman <muks@mukund.org>
* plug-ins/gfig/gfig-dobject.c: properly parse files with CRLF
......@@ -634,6 +634,7 @@ save_image (const gchar *filename,
gushort save_unit = RESUNIT_INCH;
GimpUnit unit;
gfloat factor;
gint offset_x, offset_y;
gimp_image_get_resolution (orig_image, &xresolution, &yresolution);
unit = gimp_image_get_unit (orig_image);
......@@ -657,6 +658,11 @@ save_image (const gchar *filename,
TIFFSetField (tif, TIFFTAG_YRESOLUTION, yresolution);
TIFFSetField (tif, TIFFTAG_RESOLUTIONUNIT, save_unit);
}
gimp_drawable_offsets (layer, &offset_x, &offset_y);
TIFFSetField (tif, TIFFTAG_XPOSITION, offset_x / xresolution);
TIFFSetField (tif, TIFFTAG_YPOSITION, offset_y / yresolution);
}
/* The TIFF spec explicitely says ASCII for the image description. */
......
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