Account for double errors

This commit is contained in:
Sebastian Ramacher 2022-12-03 20:57:10 +01:00
parent 01468c2381
commit 1df1581f27

View file

@ -996,7 +996,7 @@ document_open_page_most_frequent_size(zathura_document_t *document,
bool found = false;
GIRARA_LIST_FOREACH_BODY(samples, sample_t*, sample,
if (sample->h == h && sample->w == w) {
if (fabs(sample->h - h) <= DBL_EPSILON && fabs(sample->w - w) <= DBL_EPSILON) {
sample->freq++;
found = true;
break;