mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-27 14:16:01 +01:00
Account for double errors
This commit is contained in:
parent
01468c2381
commit
1df1581f27
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue