From 46061924171c709bf108683071e5d2e21b026a90 Mon Sep 17 00:00:00 2001 From: "antihax@gmail.com" Date: Mon, 26 Feb 2018 17:27:26 -0600 Subject: [PATCH] Prevent hang in EVEmon. --- src/EVEMon.LogitechG15/LcdDisplay.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/EVEMon.LogitechG15/LcdDisplay.cs b/src/EVEMon.LogitechG15/LcdDisplay.cs index 1535deeec..81c9c73ec 100644 --- a/src/EVEMon.LogitechG15/LcdDisplay.cs +++ b/src/EVEMon.LogitechG15/LcdDisplay.cs @@ -706,7 +706,11 @@ private string AbbreviationFormat(decimal value, float width) int suffixIndex = 0; float newWidth; - do + if (width <= 0.0f) { + return String.Empty; + } + + do { value /= 1000M; suffixIndex++;