Fix reduction reporting when no reduction occured
This commit is contained in:
parent
95d521c81b
commit
87ba51c936
1 changed files with 3 additions and 1 deletions
|
|
@ -509,7 +509,9 @@ fn optimize_png(
|
|||
perform_reductions(png.raw.clone(), opts, &deadline, &eval);
|
||||
let mut eval_filter = if let Some(result) = eval.get_best_candidate() {
|
||||
*png = result.image;
|
||||
reduction_occurred = true;
|
||||
if result.is_reduction {
|
||||
reduction_occurred = true;
|
||||
}
|
||||
Some(result.filter)
|
||||
} else {
|
||||
None
|
||||
|
|
|
|||
Loading…
Reference in a new issue