Rendering fix

This commit is contained in:
daa84
2017-09-07 18:01:04 +03:00
parent 7f05e11e84
commit e4bbce3be4
2 changed files with 3 additions and 1 deletions

View File

@@ -60,7 +60,7 @@ impl Line {
}
fn set_cell_to_empty(&mut self, cell_idx: usize) -> bool {
if self.item_line[cell_idx].is_some() {
if self.is_binded_to_item(cell_idx) {
self.item_line[cell_idx] = None;
self.cell_to_item[cell_idx] = -1;
self.line[cell_idx].dirty = true;