소스 검색

Fix _get_rgb_by_label

Kentaro Wada 3 년 전
부모
커밋
57bde081d7
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      labelme/app.py

+ 1 - 0
labelme/app.py

@@ -1147,6 +1147,7 @@ class MainWindow(QtWidgets.QMainWindow):
             return self._config["label_colors"][label]
         elif self._config["default_shape_color"]:
             return self._config["default_shape_color"]
+        return (0, 255, 0)
 
     def remLabels(self, shapes):
         for shape in shapes: