=================================================================== RCS file: /cvsroot/hugin/hugin/src/include/PT/RemappedPanoImage.h,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- hugin/hugin/src/include/PT/RemappedPanoImage.h 2005/05/11 18:13:12 1.8 +++ hugin/hugin/src/include/PT/RemappedPanoImage.h 2005/11/16 18:50:05 1.9 @@ -436,8 +436,7 @@ if (imgOpts.docrop) { vigra::BImage alpha(srcImgSize,255); - - if (pano.getLens(pano.getImage(imgNr)).getProjection() == Lens::CIRCULAR_FISHEYE) { + if (pano.getLens(img.getLensNr()).getProjection() == Lens::CIRCULAR_FISHEYE) { FDiff2D m( (imgOpts.cropRect.left() + imgOpts.cropRect.width()/2.0) * scale, (imgOpts.cropRect.top() + imgOpts.cropRect.height()/2.0) * scale); @@ -494,7 +493,6 @@ vigra::BImage alpha(srcImgSize); vigra::copyImage(vigra::make_triple(alphaImg.first, alphaImg.first + srcImgSize, alphaImg.second), vigra::destImage(alpha)); - if (pano.getLens(img.getLensNr()).getProjection() == Lens::CIRCULAR_FISHEYE) { FDiff2D m( (imgOpts.cropRect.left() + imgOpts.cropRect.width()/2.0) * scale, (imgOpts.cropRect.top() + imgOpts.cropRect.height()/2.0) * scale);