diff options
-rw-r--r-- | Tools/pynche/ColorDB.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Tools/pynche/ColorDB.py b/Tools/pynche/ColorDB.py index 359e2d8..6fa5577 100644 --- a/Tools/pynche/ColorDB.py +++ b/Tools/pynche/ColorDB.py @@ -78,7 +78,8 @@ class ColorDB: # inefficient! nearest = -1 nearest_name = '' - for name, (r, g, b, rrggbb) in self.__byname.items(): + for name, aliases in self.__byrrggbb.values(): + r, g, b, rrggbb = self.__byname[name] rdelta = red - r gdelta = green - g bdelta = blue - b |