From 4920f48ab4a4e84e5b824363eb2009d86f126b5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20R=C3=B6ssler?= Date: Wed, 9 Feb 2022 13:17:09 +0100 Subject: [PATCH] always assign self.odd --- egui_extras/src/table.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/egui_extras/src/table.rs b/egui_extras/src/table.rs index 172994b6..2b76c41d 100644 --- a/egui_extras/src/table.rs +++ b/egui_extras/src/table.rs @@ -179,9 +179,7 @@ impl<'a> TableBody<'a> { let count = (max_height / height).ceil() as usize; let end = cmp::min(start + count, rows); - if start % 2 != 0 { - self.odd = false; - } + self.odd = start % 2 == 0; for idx in start..end { row(