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(