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

Refactor galley size rounding

This commit is contained in:
Emil Ernerfeldt
2025-03-30 17:13:39 +02:00
parent b0d0d2f279
commit 9e44490b31
3 changed files with 97 additions and 91 deletions

View File

@@ -860,7 +860,7 @@ impl GalleyCache {
..byte_range.end.saturating_sub(start).min(end - start);
Some(LayoutSection {
leading_space: if byte_range.end == 0 {
0.0 // this sections is behind us (unused in this paragraph)
0.0 // this section is behind us (unused in this paragraph)
} else {
leading_space
},