diff options
author | Bastien Nocera <hadess@hadess.net> | 2017-07-26 15:57:10 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2017-07-26 16:14:46 +0200 |
commit | d6a0233a331a957615ba0dd7fa569fb496e3caf2 (patch) | |
tree | d25720cfe49a48cf365a8c44f965d27423abfaba | |
parent | 43730e79f97f96f11e7c0aaed77c3413ffd549b2 (diff) | |
download | gdk-pixbuf-d6a0233a331a957615ba0dd7fa569fb496e3caf2.tar.gz |
ico: Fix icon quality sorting
Despite the inherited comment, commit 99508c7 sorted the icons by
increasing instead of decreasing quality.
https://bugzilla.gnome.org/show_bug.cgi?id=785447
-rw-r--r-- | gdk-pixbuf/io-ico.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdk-pixbuf/io-ico.c b/gdk-pixbuf/io-ico.c index 12f0a5880..5b3646cb3 100644 --- a/gdk-pixbuf/io-ico.c +++ b/gdk-pixbuf/io-ico.c @@ -203,9 +203,9 @@ compare_direntry_scores (gconstpointer a, const struct ico_direntry_data *ib = b; /* Backwards, so largest first */ - if (ib->ImageScore > ia->ImageScore) + if (ib->ImageScore < ia->ImageScore) return -1; - else if (ib->ImageScore < ia->ImageScore) + else if (ib->ImageScore > ia->ImageScore) return 1; return 0; } |