From 293357ae2a157e458e088f3c3a4a7323371b131f Mon Sep 17 00:00:00 2001 From: Matthew Wilber Date: Fri, 9 Jan 2004 02:34:20 +0000 Subject: [PATCH] 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 --- .../translators/libtifftranslator/TIFFTranslator.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/add-ons/translators/libtifftranslator/TIFFTranslator.cpp b/src/add-ons/translators/libtifftranslator/TIFFTranslator.cpp index 70f33dea3d..ada66fc8ef 100644 --- a/src/add-ons/translators/libtifftranslator/TIFFTranslator.cpp +++ b/src/add-ons/translators/libtifftranslator/TIFFTranslator.cpp @@ -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));