[mutter/wip/nielsdg/small-fixes: 2/3] clutter/keyframe-transition: Properly compare keys



commit 9fb46cca554c3ae78b6243a2135dd269abbca8f9
Author: Niels De Graef <Niels DeGraef barco com>
Date:   Mon Nov 12 15:06:49 2018 +0100

    clutter/keyframe-transition: Properly compare keys

 clutter/clutter/clutter-keyframe-transition.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/clutter/clutter/clutter-keyframe-transition.c b/clutter/clutter/clutter-keyframe-transition.c
index e53d78679..d278109cb 100644
--- a/clutter/clutter/clutter-keyframe-transition.c
+++ b/clutter/clutter/clutter-keyframe-transition.c
@@ -119,7 +119,7 @@ sort_by_key (gconstpointer a,
   if (fabs (k_a->key - k_b->key) < 0.0001)
     return 0;
 
-  if (k_a->key > k_a->key)
+  if (k_a->key > k_b->key)
     return 1;
 
   return -1;


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