eqcompare: make sure the GetText() returns a value

This commit is contained in:
shagu
2018-07-30 23:55:59 +02:00
parent b0bc0b39a8
commit 6c15e3c723
+1 -1
View File
@@ -154,7 +154,7 @@ pfUI:RegisterModule("eqcompare", function ()
if targetData then
local target = targetData[attr]
if target then
if v.value ~= target.value then
if v.value ~= target.value and v.widget:GetText() then
if v.value > target.value then
if not strfind(v.widget:GetText(), "|cff88ff88") and not strfind(v.widget:GetText(), "|cffff8888") then
v.widget:SetText(v.widget:GetText() .. "|cff88ff88 (+" .. v.value - target.value .. ")")