Return a 16x16 empty bitmap (bitmap loader) if we got an error (missing icon or other WTF cases)
This commit is contained in:
@@ -69,6 +69,9 @@ def getBitmap(name,location):
|
|||||||
bmp = cachedBitmaps[path]
|
bmp = cachedBitmaps[path]
|
||||||
|
|
||||||
# print "#BMPs:%d - Current took: %.8f" % (cachedBitmapsCount,time.clock() - start)
|
# print "#BMPs:%d - Current took: %.8f" % (cachedBitmapsCount,time.clock() - start)
|
||||||
|
if bmp is None:
|
||||||
|
bmp = wx.EmptyBitmap(16,16)
|
||||||
|
|
||||||
return bmp
|
return bmp
|
||||||
|
|
||||||
def getImage(name, location):
|
def getImage(name, location):
|
||||||
|
|||||||
Reference in New Issue
Block a user