[gdk-pixbuf] ico: Fix icon quality sorting



commit d6a0233a331a957615ba0dd7fa569fb496e3caf2
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Jul 26 15:57:10 2017 +0200

    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

 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 12f0a58..5b3646c 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;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]