1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-01 14:20:04 -04:00

Make the section index private so we don't need to calculate it corectly

This commit is contained in:
Emil Ernerfeldt
2025-03-30 20:03:47 +02:00
parent 22ea9e91bd
commit 8a33a6a6ce
3 changed files with 22 additions and 28 deletions

View File

@@ -1094,17 +1094,17 @@ mod tests {
for (i, row) in whole.rows.iter().enumerate() {
println!(
"Whole row {i}: section_index_at_start={}, first glyph section_index: {:?}",
row.row.section_index_at_start,
row.row.glyphs.first().map(|g| g.section_index)
);
"Whole row {i}: section_index_at_start={}, first glyph section_index: {:?}",
row.row.section_index_at_start,
row.row.glyphs.first().map(|g| g.section_index)
);
}
for (i, row) in split.rows.iter().enumerate() {
println!(
"Split row {i}: section_index_at_start={}, first glyph section_index: {:?}",
row.row.section_index_at_start,
row.row.glyphs.first().map(|g| g.section_index)
);
"Split row {i}: section_index_at_start={}, first glyph section_index: {:?}",
row.row.section_index_at_start,
row.row.glyphs.first().map(|g| g.section_index)
);
}
// Don't compare for equaliity; but format with a specific precision and make sure we hit that.