fix last repeating footers not being pushed

This commit is contained in:
PgBiel 2025-06-12 21:30:25 -03:00
parent b3fd4676c4
commit bd7e403a6d

View File

@ -2441,6 +2441,8 @@ fn simulate_footer_repetition(footers: &[Repeatable<Footer>]) -> Vec<Repeatable<
} }
} }
// Push remaining footers that repeat starting from the top of the grid
ordered_footers.extend(repeating_footers.into_iter().rev().cloned());
ordered_footers.reverse(); ordered_footers.reverse();
ordered_footers ordered_footers