Set EXTRASAMPLES even if 0

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10840 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2001-09-04 03:58:59 +00:00
parent 99818a7d2b
commit 0a30e76ea7
2 changed files with 5 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2001-09-03 Adam Fedor <fedor@gnu.org>
* Source/tiff.m (NSTiffWrite): Set EXTRASAMPLES even if 0.
2001-09-02 Adam Fedor <fedor@gnu.org>
* Source/NSView.m (-lockFocusInRect:) Properly mark the save object.

View file

@ -465,8 +465,7 @@ NSTiffWrite(TIFF* image, NSTiffInfo* info, char* data)
sample_info[0] = EXTRASAMPLE_ASSOCALPHA;
else
sample_info[0] = EXTRASAMPLE_UNASSALPHA;
if (info->extraSamples)
TIFFSetField(image, TIFFTAG_EXTRASAMPLES, 1, sample_info);
TIFFSetField(image, TIFFTAG_EXTRASAMPLES, info->extraSamples, sample_info);
switch (info->photoInterp)
{