From c1c122e7b3f60dc7b5a224c68d2acb106fda8b49 Mon Sep 17 00:00:00 2001 From: David Corbett Date: Sat, 11 May 2019 11:38:06 -0400 Subject: [PATCH] [iter] Fix filter rewinding --- src/hb-iter.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-iter.hh b/src/hb-iter.hh index 77edd1a0a..1b5c427df 100644 --- a/src/hb-iter.hh +++ b/src/hb-iter.hh @@ -433,7 +433,7 @@ struct hb_filter_iter_t : __item_t__ __item__ () const { return *it; } bool __more__ () const { return bool (it); } void __next__ () { do ++it; while (it && !hb_has (p.get (), hb_get (f.get (), *it))); } - void __prev__ () { --it; } + void __prev__ () { do --it; while (it && !hb_has (p.get (), hb_get (f.get (), *it))); } hb_filter_iter_t __end__ () const { return hb_filter_iter_t (it.end (), p, f); } bool operator != (const hb_filter_iter_t& o) const { return it != o.it || p != o.p || f != o.f; }