Return a 16x16 empty bitmap (bitmap loader) if we got an error (missing icon or other WTF cases)

This commit is contained in:
HomeWorld
2011-10-25 21:40:06 +03:00
parent 805ec78cb6
commit fa1e44c42e

View File

@@ -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):