From 7c3b3bc37ec53163a40cb83635ae5effa46f6757 Mon Sep 17 00:00:00 2001 From: Scott Sibley Date: Sat, 6 Aug 2011 04:28:43 -0500 Subject: [PATCH] Bug fix? o.O --- Modules/Histograms/Histograms.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/Histograms/Histograms.lua b/Modules/Histograms/Histograms.lua index 94da699..f950c79 100644 --- a/Modules/Histograms/Histograms.lua +++ b/Modules/Histograms/Histograms.lua @@ -72,7 +72,7 @@ return HPColor(UnitHealth(unit), UnitHealthMax(unit)) height = 50, points = {{"TOPRIGHT", "StarTipTooltipMain", "BOTTOMRIGHT", -100, -12}}, color = [[ -return PowerColor("MANA", unit) +return PowerColor(nil, unit) ]], layer = 1, update = 1000, @@ -213,7 +213,7 @@ function updateHistogram(widget) if type(segment) == "table" then bar:SetValue((segment[1] or 0) * 100) local r, g, b, a = widget.history[i][2], widget.history[i][3], widget.history[i][4] - bar:SetStatusBarColor(r, g, b, a) + bar:SetStatusBarColor(r, g, b, a or 1) elseif type(segment) == "number" then bar:SetValue(segment * 100) bar:SetStatusBarColor(.5, .1, .8, 1) -- 1.7.9.5