UPDATE: Select multiple columns/rows

Also fixed a bug where a second column would not pick up salyes correctly
This commit is contained in:
Nicolás Hatcher
2025-02-16 07:15:31 +01:00
committed by Nicolás Hatcher Andrés
parent 5aa7617e97
commit dd9ca4224d
4 changed files with 109 additions and 29 deletions

View File

@@ -1156,6 +1156,19 @@ impl UserModel {
new_value: Box::new(style),
});
// We need to update the styles in all cells that have a row style
for row_s in styled_rows.iter() {
let row = row_s.r;
self.update_single_cell_style(
sheet,
row,
column,
style_path,
value,
&mut diff_list,
)?;
}
// Update style in all cells that have different styles
// FIXME: We need a better way to transverse of cells in a column
for &row in &data_rows {
@@ -1175,22 +1188,6 @@ impl UserModel {
}
}
}
// We need to update the styles in all cells that have a row style
for row_s in styled_rows.iter() {
let row = row_s.r;
if data_rows.contains(&row) {
// Skip if the row has data
continue;
}
self.update_single_cell_style(
sheet,
row,
column,
style_path,
value,
&mut diff_list,
)?;
}
}
} else if range.column == 1 && range.width == LAST_COLUMN {
// Full rows