From ebab4aa7ab77617c343437ba19d4bbf9df6f456d 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/labelImg.py b/labelImg.py index efd8a2976..6c35164c4 100755 --- a/labelImg.py +++ b/labelImg.py @@ -950,6 +950,7 @@ def label_item_changed(self, item): if label != shape.label: shape.label = item.text() shape.line_color = generate_color_by_text(shape.label) + 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)