diff --git a/imgui/src/list_clipper.rs b/imgui/src/list_clipper.rs index 7b11684..a7c000c 100644 --- a/imgui/src/list_clipper.rs +++ b/imgui/src/list_clipper.rs @@ -92,7 +92,7 @@ impl<'ui> ListClipperToken<'ui> { panic!("ListClipperToken::step called after it has previously returned false"); } let ret = unsafe { sys::ImGuiListClipper_Step(self.list_clipper) }; - if ret { + if !ret { self.consumed_workaround = true; } ret