From ad122a25a2f08afb568a88f18c414d1cabe4d2ca Mon Sep 17 00:00:00 2001 From: Stefan Breunig Date: Tue, 2 Aug 2022 20:21:20 +0200 Subject: [PATCH] fix incorrect highlight color after label change --- labelImg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)