From 43522c5f2a12dc0cf3cda733e4fb5c04cd62a154 Mon Sep 17 00:00:00 2001 From: scuri Date: Wed, 19 Aug 2009 18:39:31 +0000 Subject: *** empty log message *** --- src/im_format_tiff.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/im_format_tiff.cpp') diff --git a/src/im_format_tiff.cpp b/src/im_format_tiff.cpp index 1c55a55..66fbe57 100644 --- a/src/im_format_tiff.cpp +++ b/src/im_format_tiff.cpp @@ -3,7 +3,7 @@ * * See Copyright Notice in im_lib.h * See libTIFF Copyright Notice in tiff.h - * $Id: im_format_tiff.cpp,v 1.2 2008/12/03 15:45:34 scuri Exp $ + * $Id: im_format_tiff.cpp,v 1.3 2009/08/19 18:39:43 scuri Exp $ */ #include "im_format.h" @@ -479,9 +479,9 @@ static void iTIFFReadAttributes(TIFF* tiff, imAttribTable* attrib_table) if (xres != 0 && yres != 0) { if (ResolutionUnit == RESUNIT_INCH) - attrib_table->Set("ResolutionUnit", IM_BYTE, 4, "DPI"); + attrib_table->Set("ResolutionUnit", IM_BYTE, -1, "DPI"); else - attrib_table->Set("ResolutionUnit", IM_BYTE, 4, "DPC"); + attrib_table->Set("ResolutionUnit", IM_BYTE, -1, "DPC"); attrib_table->Set("XResolution", IM_FLOAT, 1, (void*)&xres); attrib_table->Set("YResolution", IM_FLOAT, 1, (void*)&yres); -- cgit v1.2.3