[gs-commits] rev 10925 - trunk/gs/base
larsu at ghostscript.com
larsu at ghostscript.com
Mon Mar 15 14:56:15 UTC 2010
Author: larsu
Date: 2010-03-15 14:56:15 +0000 (Mon, 15 Mar 2010)
New Revision: 10925
Modified:
trunk/gs/base/gdevtifs.c
Log:
Partial fix for bug #691172: The tiff resolution tags are floating point values
and need to be passed as such to TIFFSetField.
Modified: trunk/gs/base/gdevtifs.c
===================================================================
--- trunk/gs/base/gdevtifs.c 2010-03-15 07:44:38 UTC (rev 10924)
+++ trunk/gs/base/gdevtifs.c 2010-03-15 14:56:15 UTC (rev 10925)
@@ -245,8 +245,8 @@
TIFFSetField(tif, TIFFTAG_PLANARCONFIG, PLANARCONFIG_CONTIG);
TIFFSetField(tif, TIFFTAG_RESOLUTIONUNIT, RESUNIT_INCH);
- TIFFSetField(tif, TIFFTAG_XRESOLUTION, pdev->x_pixels_per_inch);
- TIFFSetField(tif, TIFFTAG_YRESOLUTION, pdev->y_pixels_per_inch);
+ TIFFSetField(tif, TIFFTAG_XRESOLUTION, (float)pdev->x_pixels_per_inch);
+ TIFFSetField(tif, TIFFTAG_YRESOLUTION, (float)pdev->y_pixels_per_inch);
{
char revs[10];
More information about the gs-commits
mailing list