From 55c4f9b401890721356e303bb0ad0745278f2d66 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 6 Feb 2012 12:42:52 +0000 Subject: [PATCH] From Paul Palumbo, "This change seems to fix a problem reading 32-bit Floating point tiff images. Without this fix, I'm only getting half my image displayed in "osgviewer --image"." --- src/osgPlugins/tiff/ReaderWriterTIFF.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgPlugins/tiff/ReaderWriterTIFF.cpp b/src/osgPlugins/tiff/ReaderWriterTIFF.cpp index 92dd909d8..901c845cb 100644 --- a/src/osgPlugins/tiff/ReaderWriterTIFF.cpp +++ b/src/osgPlugins/tiff/ReaderWriterTIFF.cpp @@ -665,7 +665,7 @@ simage_tiff_load(std::istream& fin, tifferror = ERR_READ; break; } - invert_row(currPtr, inbuf, w, photometric == PHOTOMETRIC_MINISWHITE, bitspersample); + invert_row(currPtr, inbuf, samplesperpixel*w, photometric == PHOTOMETRIC_MINISWHITE, bitspersample); currPtr -= format*w; } break;