Use tdir_count when calling TIFFCvtNativeToIEEEDouble() in the
TIFFWriteDoubleArray() function as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=845
This commit is contained in:
parent
3fab53b53f
commit
a4d796bca4
@ -1,4 +1,4 @@
|
||||
/* $Id: tif_dirwrite.c,v 1.27 2004-12-10 14:33:01 dron Exp $ */
|
||||
/* $Id: tif_dirwrite.c,v 1.28 2005-05-26 07:50:38 dron Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988-1997 Sam Leffler
|
||||
@ -884,7 +884,7 @@ TIFFWriteFloatArray(TIFF* tif, TIFFDirEntry* dir, float* v)
|
||||
static int
|
||||
TIFFWriteDoubleArray(TIFF* tif, TIFFDirEntry* dir, double* v)
|
||||
{
|
||||
TIFFCvtNativeToIEEEDouble(tif, n, v);
|
||||
TIFFCvtNativeToIEEEDouble(tif, dir->tdir_count, v);
|
||||
return (TIFFWriteData(tif, dir, (char*) v));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user