fix transparency detection in merge

a typo meant we were just testing the first band for zero, not all three

thanks Haida!
This commit is contained in:
John Cupitt 2017-08-02 10:41:10 +01:00
parent a3b226aa9b
commit 58f9757467
3 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,5 @@
2/8/17 started 8.5.8
- fix transparency detection in merge, thanks Haida
9/6/17 started 8.5.7
- better smartcrop

View File

@ -392,7 +392,7 @@ make_firstlast( MergeInfo *inf, Overlapping *ovlap, Rect *oreg )
int ii; \
\
for( ii = 0; ii < cb; ii++ ) \
if( tt[i] ) \
if( tt[ii] ) \
break; \
if( ii == cb ) \
(RESULT) = 1; \

View File

@ -335,7 +335,7 @@ make_firstlast( MergeInfo *inf, Overlapping *ovlap, Rect *oreg )
int ii; \
\
for( ii = 0; ii < cb; ii++ ) \
if( tt[i] ) \
if( tt[ii] ) \
break; \
if( ii == cb ) \
(RESULT) = 1; \