From de461a9266a877025db5e8bc62b464fd514a4b12 Mon Sep 17 00:00:00 2001 From: "Yan, Zheng" Date: Thu, 6 Mar 2014 11:20:56 +0800 Subject: [PATCH] fragtree_t: fix get_leaves_under() If fragtree is (*^1) and the caller wants leaves under frag 00*. get_leaves_under() should return empty list. Signed-off-by: Yan, Zheng --- src/include/frag.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/frag.h b/src/include/frag.h index fbe5b43f8cbe0..f98765a30c7b0 100644 --- a/src/include/frag.h +++ b/src/include/frag.h @@ -295,7 +295,7 @@ public: int nb = get_split(t); if (nb) t.split(nb, q); // queue up children - else + else if (x.contains(t)) ls.push_back(t); // not spit, it's a leaf. } } -- 2.39.5