Integration: cargo fmt

This commit is contained in:
aiongg
2026-10-22 02:45:22 +00:00
parent 9c2cc2bff4
commit 1d9b29ff57
+1 -5
View File
@@ -533,11 +533,7 @@ pub fn auto_row_height(wb: &mut Workbook, si: usize, row: u32) {
if st.align.wrap {
let text = crate::display::cell_text(wb, sh, CellRef::new(row, c));
let w = sh.col_width(c).max(1.0) - 6.0;
lines = text
.lines()
.map(|l| wrapped_line_count(l, w.max(1.0), size, st.font.bold))
.sum::<f32>()
.max(1.0);
lines = text.lines().map(|l| wrapped_line_count(l, w.max(1.0), size, st.font.bold)).sum::<f32>().max(1.0);
}
} else if st.font.size <= gridcraft_model::DEFAULT_FONT_SIZE {
continue;