From c9c1805857ae547dd52202ede26c4619bfddcfd6 Mon Sep 17 00:00:00 2001 From: mfrasca <> Date: Tue, 31 Oct 2006 12:43:36 +0000 Subject: [PATCH] 1587104: error initializing font 3x5 it really was a library problem... it was caused inside getFont by the way I was choosing an alternative to a clashing character code. the correct way is by choosing outside both the already defined characters and the characters that the font uses. we were creating a cascade in clashes, and were not able to handle it correctly. avoiding the problem is the best cure. --- wmdocklib/pywmhelpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wmdocklib/pywmhelpers.py b/wmdocklib/pywmhelpers.py index 61e0b5e..5885e70 100644 --- a/wmdocklib/pywmhelpers.py +++ b/wmdocklib/pywmhelpers.py @@ -279,7 +279,7 @@ def initPixmap(background=None, if available[code]: continue if palette[code] != font_palette[code]: - newcode = [k for k in available if available[k]][0] + newcode = [k for k in available if available[k] and not k in font_palette][0] available[newcode] = False replace.append((code, newcode)) for code, newcode in replace: