From bd1db5998a461c2ef7240698e2ae81aa4dfcbb6c Mon Sep 17 00:00:00 2001 From: Charles Haley Date: Fri, 11 Jul 2014 11:02:46 +0200 Subject: [PATCH] Fix regression where multiple coloring rules were used for the same column. --- src/calibre/gui2/library/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/gui2/library/models.py b/src/calibre/gui2/library/models.py index cbee7e1b79..6b7320164c 100644 --- a/src/calibre/gui2/library/models.py +++ b/src/calibre/gui2/library/models.py @@ -55,6 +55,7 @@ class ColumnColor(object): # {{{ self.formatter = formatter def __call__(self, id_, key, fmt, db, color_cache, template_cache): + key += str(hash(fmt)) if id_ in color_cache and key in color_cache[id_]: self.mi = None color = color_cache[id_][key]