Fix repaint

This commit is contained in:
daa84 2017-09-04 12:47:23 +03:00
parent f8a10b2c27
commit 3bb326c8aa

View File

@ -195,7 +195,7 @@ impl Line {
self.line[i].dirty = true; self.line[i].dirty = true;
self.cell_to_item[i] = start_cell as i32; self.cell_to_item[i] = start_cell as i32;
} }
for i in start_cell + 1..end_cell { for i in start_cell + 1..end_cell + 1 {
self.item_line[i] = None; self.item_line[i] = None;
} }
self.item_line[start_cell] = Some(Item::new(new_item.clone())); self.item_line[start_cell] = Some(Item::new(new_item.clone()));