Show a default bitmap for ships that have their icons missing. Fixes ticket #305

This commit is contained in:
HomeWorld
2010-11-26 10:44:04 +02:00
parent e98cecfea1
commit 520b324b64
2 changed files with 2 additions and 2 deletions

View File

@@ -842,7 +842,7 @@ class ShipItem(wx.Window):
if shipID:
self.shipBmp = bitmapLoader.getBitmap(str(shipID),"ships")
if not self.shipBmp:
self.shipBmp = wx.EmptyBitmap(32, 32)
self.shipBmp = bitmapLoader.getBitmap("ship_no_image_big","icons")
self.shipFittingInfo = shipFittingInfo
self.shipName, self.shipFits = shipFittingInfo
@@ -1195,7 +1195,7 @@ class FitItem(wx.Window):
if shipID:
self.shipBmp = bitmapLoader.getBitmap(str(shipID),"ships")
if not self.shipBmp:
self.shipBmp = wx.EmptyBitmap(32, 32)
self.shipBmp = bitmapLoader.getBitmap("ship_no_image_big","icons")
self.shipFittingInfo = shipFittingInfo
self.shipName, self.fitName, self.timestamp = shipFittingInfo

BIN
icons/ship_no_image_big.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB