diff --git a/gui/bitmapLoader.py b/gui/bitmapLoader.py index fb1139f57..e24ed3d34 100644 --- a/gui/bitmapLoader.py +++ b/gui/bitmapLoader.py @@ -69,6 +69,9 @@ def getBitmap(name,location): bmp = cachedBitmaps[path] # print "#BMPs:%d - Current took: %.8f" % (cachedBitmapsCount,time.clock() - start) + if bmp is None: + bmp = wx.EmptyBitmap(16,16) + return bmp def getImage(name, location):