From 4708836aad915688786df19e4ce510b6287ed223 Mon Sep 17 00:00:00 2001 From: cncfanatics Date: Mon, 16 Aug 2010 15:42:59 +0200 Subject: [PATCH] Instead of returning nothing, return the nullBitmap when no image is found --- gui/bitmapLoader.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gui/bitmapLoader.py b/gui/bitmapLoader.py index 60e267605..78f876e99 100644 --- a/gui/bitmapLoader.py +++ b/gui/bitmapLoader.py @@ -38,3 +38,5 @@ def getBitmap(name,location): if os.path.exists(path): return wx.Image(path).ConvertToBitmap() + else: + return wx.NullBitmap