From ae19f9b07d8d24b865bd0f1d886fc920cc9f37b1 Mon Sep 17 00:00:00 2001 From: Constantin Date: Fri, 9 Apr 2010 12:03:47 +0200 Subject: fixed tiff(a) bug --- conversion/tiff.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'conversion') diff --git a/conversion/tiff.cc b/conversion/tiff.cc index e451884..46b235e 100644 --- a/conversion/tiff.cc +++ b/conversion/tiff.cc @@ -175,7 +175,7 @@ void r_Conv_TIFF::initTIFF( void ) /// constructor using type structure r_Conv_TIFF::r_Conv_TIFF(const char *src, const r_Minterval &interv, const r_Type *tp) throw(r_Error) -: r_Convert_Memory(src, interv, tp) + : r_Convert_Memory(src, interv, tp, true) { ENTER( "r_Conv_TIFF::r_Conv_TIFF( " << (src?src:"(null)") << ", (minterval), (type ptr) )" ); @@ -259,6 +259,7 @@ r_convDesc &r_Conv_TIFF::convertTo( const char *options ) throw(r_Error) break; case ctype_float32: bps = 32; bpp = 32; pixelAdd = 4*height; lineAdd = 4; + break; default: TALK( "r_Conv_TIFF::convertTo(): error: unsupported base type " << desc.baseType << "." ); RMInit::logOut << "Error: encountered unsupported TIFF base type." << endl; @@ -406,7 +407,7 @@ r_convDesc &r_Conv_TIFF::convertTo( const char *options ) throw(r_Error) for (i =0; i