tiff_reader - fix end_y calc in read_stripped

This commit is contained in:
artemp 2014-12-10 18:11:41 +01:00
parent 1dfad4b10b
commit 5021a4e122

View file

@ -650,6 +650,7 @@ void tiff_reader<T>::read_stripped(unsigned x0,unsigned y0,image_data_rgba8& ima
unsigned start_y=(y0/rows_per_strip_)*rows_per_strip_; unsigned start_y=(y0/rows_per_strip_)*rows_per_strip_;
unsigned end_y=((y0+height)/rows_per_strip_+1)*rows_per_strip_; unsigned end_y=((y0+height)/rows_per_strip_+1)*rows_per_strip_;
std::min(end_y, (unsigned)height_);
bool laststrip=(static_cast<unsigned>(end_y) > height_)?true:false; bool laststrip=(static_cast<unsigned>(end_y) > height_)?true:false;
int row,tx0,tx1,ty0,ty1; int row,tx0,tx1,ty0,ty1;