fix for zoomed images when no a raw file but size does not match the n*skip height. (don't know a better description)

This commit is contained in:
janrinze
2010-12-12 19:58:17 +01:00
parent 2a1f3c17d0
commit 9bf9b6a083

View File

@@ -189,9 +189,10 @@ void StdImageSource::getImage_ (ColorTemp ctemp, int tran, Image16* image, Previ
int maxx=img->width,maxy=img->height;
int b_ix=ix;
#ifdef _OPENMP
#pragma omp for
#pragma omp for private(ix)
#endif
for (int i=istart; i<iend; i+=skip) { ix=b_ix+i/skip;
for (int i=istart; i<iend; i+=skip)
if ((ix=b_ix+(i-istart)/skip )<image->width){
for (int j=0,jx=sx1; j<imwidth; j++,jx+=pp.skip) {
float rtot,gtot,btot;
rtot=gtot=btot=0;