From b92f6bd5b3aadc7e12bbbf5352b7ce2c048b565d Mon Sep 17 00:00:00 2001 From: Parnic Date: Thu, 25 Mar 2010 17:49:17 +0000 Subject: [PATCH] - fixed a couple of issues that could cause the SnD bar to display incorrectly --- modules/SliceAndDice.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/SliceAndDice.lua b/modules/SliceAndDice.lua index 7448831..3b50fc2 100644 --- a/modules/SliceAndDice.lua +++ b/modules/SliceAndDice.lua @@ -149,7 +149,7 @@ function SliceAndDice.prototype:CreateDurationBar() self.durationFrame:SetHeight(self.settings.barHeight) if not self.durationFrame.bar then - self.durationFrame.bar = self.frame:CreateTexture(nil, "LOW") + self.durationFrame.bar = self.durationFrame:CreateTexture(nil, "LOW") end self.durationFrame.bar:SetTexture(IceElement.TexturePath .. self:GetMyBarTexture()) @@ -267,8 +267,10 @@ function SliceAndDice.prototype:UpdateDurationBar(unit) -- player doesn't want to show the percent of max or the alpha is zeroed out, so don't bother with the duration bar if not self.moduleSettings.showAsPercentOfMax or self.moduleSettings.durationAlpha == 0 then + self.durationFrame:Hide() return end + self.durationFrame:Show() -- if we have combo points and a target selected, go ahead and show the bar so the duration bar can be seen if points > 0 and UnitExists("target") then