From 1c27972c2c05c0bee40c6562cf277caeb0908d1d Mon Sep 17 00:00:00 2001 From: Constantin Date: Mon, 5 Apr 2010 14:01:07 +0200 Subject: fixed inv_tiff bug --- conversion/tiff.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'conversion') diff --git a/conversion/tiff.cc b/conversion/tiff.cc index a2c3916..e451884 100644 --- a/conversion/tiff.cc +++ b/conversion/tiff.cc @@ -696,7 +696,7 @@ r_convDesc &r_Conv_TIFF::convertFrom(const char *options) throw(r_Error) // CONV for (i=0; i < width; i++) { *((float*)l) = *((float*)normal); - l += 4; + l += pixelAdd; normal += 4; } } @@ -708,7 +708,7 @@ r_convDesc &r_Conv_TIFF::convertFrom(const char *options) throw(r_Error) // CONV for(i=0; i < width; i++) { *((uint16*)l) = *((uint16*)normal); - l += 2; + l += pixelAdd; normal += 2; } } -- cgit