Adjusted probeSize to check for None return value

Fscking divide-by-zero errors. Meh. At least it won't bork T3s now.
This commit is contained in:
Corollax
2010-11-29 12:46:07 -06:00
parent 4bb26442c0
commit 27113458a7
2 changed files with 2 additions and 2 deletions

2
eos

Submodule eos updated: e86a8f4ce5...9429812727

View File

@@ -130,7 +130,7 @@ class TargetingMiscViewFull(StatsView):
elif labelName is "labelSensorStr":
label.SetToolTip(wx.ToolTip("Type: %s - %.1f" % (fit.scanType, value)))
elif labelName is "labelFullSigRadius":
label.SetToolTip(wx.ToolTip("Probe Size: %.3f" % fit.probeSize))
label.SetToolTip(wx.ToolTip("Probe Size: %.3f" % (fit.probeSize or 0) ))
elif labelName is "labelFullWarpSpeed":
label.SetToolTip(wx.ToolTip("Max Warp Distance: %.1f AU" %
fit.maxWarpDistance))