From 334db896ca5b0b3f6ae3ac9729a2c66c4a4a03e3 Mon Sep 17 00:00:00 2001 From: cncfanatics Date: Tue, 5 Oct 2010 19:16:12 +0200 Subject: [PATCH] Use one map per instance, not one global map --- gui/cachingImageList.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gui/cachingImageList.py b/gui/cachingImageList.py index e58aebf81..39d4c91eb 100755 --- a/gui/cachingImageList.py +++ b/gui/cachingImageList.py @@ -21,7 +21,9 @@ import wx import bitmapLoader class CachingImageList(wx.ImageList): - map = {} + def __init__(self): + self.map = {} + def Add(self, *loaderArgs): id = self.map.get(loaderArgs) if id is None: