preview crop size doesn't count right and bottom border.

This commit is contained in:
ffsup2 2010-07-11 21:06:25 +02:00
parent d8ce8c00ae
commit 04c995f329

View File

@ -124,6 +124,9 @@ void RawImageSource::transformRect (PreviewProps pp, int tran, int &ssx1, int &s
sw = h;
sh = w;
}
if( pp.w > sw-2*border) pp.w = sw-2*border;
if( pp.h > sh-2*border) pp.h = sh-2*border;
int ppx = pp.x, ppy = pp.y;
if (tran & TR_HFLIP)
ppx = sw - pp.x - pp.w;