From 84cf08a667df8be974a12c5e1a0e221fcb156efd Mon Sep 17 00:00:00 2001 From: Maciej Piechotka Date: Wed, 24 Jul 2013 22:41:22 +0200 Subject: [PATCH] Fix the foreach in TreeMap.values --- gee/treemap.vala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gee/treemap.vala b/gee/treemap.vala index 2d2708a..b957aff 100644 --- a/gee/treemap.vala +++ b/gee/treemap.vala @@ -1714,7 +1714,7 @@ public class Gee.TreeMap : Gee.AbstractBidirSortedMap { public bool foreach (ForallFunc f) { if (current != null) { - if (!f (current.key)) { + if (!f (current.value)) { return false; } current = current.next; @@ -1729,7 +1729,7 @@ public class Gee.TreeMap : Gee.AbstractBidirSortedMap { } } for (; current != null; current = current.next) { - if (!f (current.key)) { + if (!f (current.value)) { return false; } } -- 2.7.4