diff --git a/labelImg.py b/labelImg.py index efd8a2976..8ae7f1be9 100755 --- a/labelImg.py +++ b/labelImg.py @@ -949,7 +949,7 @@ def label_item_changed(self, item): label = item.text() if label != shape.label: shape.label = item.text() - shape.line_color = generate_color_by_text(shape.label) + shape.line_color = shape.fill_color = generate_color_by_text(shape.label) self.set_dirty() else: # User probably changed item visibility self.canvas.set_shape_visible(shape, item.checkState() == Qt.Checked)