tiff_reader - fix end_y calc in read_stripped
This commit is contained in:
parent
1dfad4b10b
commit
5021a4e122
1 changed files with 1 additions and 0 deletions
|
@ -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 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;
|
||||
int row,tx0,tx1,ty0,ty1;
|
||||
|
||||
|
|
Loading…
Reference in a new issue