1
0
mirror of https://github.com/gryf/wmdocklib.git synced 2025-12-30 18:32:30 +01:00

1587104: error initializing font 3x5

'and' is not 'and_then'...
split a test in two parts:
if elem[c] and d2[c]... into
if elem[c] then if d2[c]...
This commit is contained in:
mfrasca
2006-10-30 10:31:35 +00:00
parent 8d1d5d6f7d
commit 7b54548c37

View File

@@ -277,8 +277,10 @@ def initPixmap(background=None,
width, height = [int(item) for item in m.groups()]
replace = []
for code, value in font_palette.items():
if not available[code] and palette[code] != font_palette[code]:
for code, value in [(code, value)
for (code, value) in font_palette.items()
if not available[code]]:
if palette[code] != font_palette[code]:
newcode = [k for k in available if available[k]][0]
available[newcode] = False
replace.append((code, newcode))