Instead of returning nothing, return the nullBitmap when no image is found

This commit is contained in:
cncfanatics
2010-08-16 15:42:59 +02:00
parent 7e44e9e885
commit 4708836aad

View File

@@ -38,3 +38,5 @@ def getBitmap(name,location):
if os.path.exists(path):
return wx.Image(path).ConvertToBitmap()
else:
return wx.NullBitmap