summaryrefslogtreecommitdiffstats
path: root/conversion
diff options
context:
space:
mode:
authorConstantin <jucovschi@gmail.com>2010-04-05 14:01:07 +0200
committerConstantin <jucovschi@gmail.com>2010-04-05 14:23:11 +0200
commit1c27972c2c05c0bee40c6562cf277caeb0908d1d (patch)
treeb9e0bc51dc66e79d7cf916f78be3c0f146ae82ba /conversion
parent1848f76b15c06de4663d9d6d8bd655cc562e0f2b (diff)
downloadrasdaman-upstream-1c27972c2c05c0bee40c6562cf277caeb0908d1d.zip
rasdaman-upstream-1c27972c2c05c0bee40c6562cf277caeb0908d1d.tar.gz
rasdaman-upstream-1c27972c2c05c0bee40c6562cf277caeb0908d1d.tar.xz
fixed inv_tiff bug
Diffstat (limited to 'conversion')
-rw-r--r--conversion/tiff.cc4
1 files changed, 2 insertions, 2 deletions
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;
}
}