UPDATE: Select multiple columns/rows
Also fixed a bug where a second column would not pick up salyes correctly
This commit is contained in:
committed by
Nicolás Hatcher Andrés
parent
5aa7617e97
commit
dd9ca4224d
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user