mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix regression where multiple coloring rules were used for the same column.
This commit is contained in:
parent
66238446ad
commit
bd1db5998a
@ -55,6 +55,7 @@ class ColumnColor(object): # {{{
|
|||||||
self.formatter = formatter
|
self.formatter = formatter
|
||||||
|
|
||||||
def __call__(self, id_, key, fmt, db, color_cache, template_cache):
|
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_]:
|
if id_ in color_cache and key in color_cache[id_]:
|
||||||
self.mi = None
|
self.mi = None
|
||||||
color = color_cache[id_][key]
|
color = color_cache[id_][key]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user