minor fix: use already defined variable

pull/922/head
José Luis Cruz 4 years ago committed by GitHub
parent a4d5817940
commit 3e3c8c1514
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1717,7 +1717,7 @@ channels_blend(unsigned c1, unsigned c2, unsigned* blends){
bool c2default = channel_default_p(c2);
if(*blends == 0){
// don't just return c2, or you set wide status and all kinds of crap
if(channel_default_p(c2)){
if(c2default){
channel_set_default(&c1);
}else{
channel_set_rgb(&c1, rsum, gsum, bsum);

Loading…
Cancel
Save