always assign self.odd
This commit is contained in:
parent
6194b5d5fb
commit
4920f48ab4
1 changed files with 1 additions and 3 deletions
|
@ -179,9 +179,7 @@ impl<'a> TableBody<'a> {
|
||||||
let count = (max_height / height).ceil() as usize;
|
let count = (max_height / height).ceil() as usize;
|
||||||
let end = cmp::min(start + count, rows);
|
let end = cmp::min(start + count, rows);
|
||||||
|
|
||||||
if start % 2 != 0 {
|
self.odd = start % 2 == 0;
|
||||||
self.odd = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
for idx in start..end {
|
for idx in start..end {
|
||||||
row(
|
row(
|
||||||
|
|
Loading…
Reference in a new issue