Quantcast

The role should now be exactly at the start of the name

F. Dekker [04-21-13 - 12:34]
The role should now be exactly at the start of the name
Filename
PerfectRaid_Roles.lua
diff --git a/PerfectRaid_Roles.lua b/PerfectRaid_Roles.lua
index f604eea..4b5842e 100644
--- a/PerfectRaid_Roles.lua
+++ b/PerfectRaid_Roles.lua
@@ -80,13 +80,15 @@ function RaidRoles:UpdateAllUnits()
 					frame.raidrole:SetWidth(frame:GetHeight() * 0.75)
 					frame.raidrole:SetFrameLevel(frame.leftbox:GetFrameLevel()+1)
 					frame.raidrole:SetParent(frame.leftbox)
-					frame.raidrole:SetPoint("RIGHT", -3-frame.name:GetWidth(), 0)

 					frame.raidroletex = frame.raidrole:CreateTexture(nil, "OVERLAY")
 					frame.raidroletex:SetAllPoints()
 					frame.raidroletex:SetTexture("Interface\\LFGFrame\\UI-LFG-ICON-PORTRAITROLES")
 				end

+				frame.raidrole:ClearAllPoints()
+				frame.raidrole:SetPoint("RIGHT", -3-frame.name:GetWidth(), 0)
+
 				if ( showRoles and showTank and role == "TANK" ) then
 					frame.raidroletex:SetTexCoord(0, 19/64, 22/64, 41/64)
 					frame.raidroletex:Show()