Changed to always write out the entire image and ignore the headerOnly/dataOnly settings.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5994 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Matthew Wilber
2004-01-09 02:34:20 +00:00
parent 2c00fcbb62
commit 293357ae2a
@@ -557,6 +557,9 @@ TIFFTranslator::Identify(BPositionIO *inSource,
// at the same time
return B_BAD_VALUE;
}
bheaderonly = bdataonly = false;
// only allow writing of the entire image
// (fix for buggy programs that lie about what they actually need)
uint32 n32ch;
memcpy(&n32ch, ch, sizeof(uint32));
@@ -750,6 +753,9 @@ TIFFTranslator::Translate(BPositionIO *inSource,
// at the same time
return B_BAD_VALUE;
}
bheaderonly = bdataonly = false;
// only allow writing of the entire image
// (fix for buggy programs that lie about what they actually need)
uint32 n32ch;
memcpy(&n32ch, ch, sizeof(uint32));