From 15f9dcadef4285ea95e7eb4d2e60396a8ef05021 Mon Sep 17 00:00:00 2001 From: Matthew Wilber Date: Sun, 3 Aug 2003 01:57:33 +0000 Subject: [PATCH] Fixed issue with multipage tiffs where if page 1 was requested, the last page of the tiff would be retrieved git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4215 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/translators/libtifftranslator/TIFFTranslator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/add-ons/translators/libtifftranslator/TIFFTranslator.cpp b/src/add-ons/translators/libtifftranslator/TIFFTranslator.cpp index 4afeb69873..8f8b38cb40 100644 --- a/src/add-ons/translators/libtifftranslator/TIFFTranslator.cpp +++ b/src/add-ons/translators/libtifftranslator/TIFFTranslator.cpp @@ -449,7 +449,7 @@ identify_tiff_header(BPositionIO *inSource, BMessage *ioExtension, // identify the document the user specified or the first document // if the user did not specify which document they wanted to identify - if (document_index != 1 && !TIFFSetDirectory(tif, document_index - 1)) + if (!TIFFSetDirectory(tif, document_index - 1)) return B_NO_TRANSLATOR; if (outInfo) {