Quantcast

in addon:TRADE_SKILL_SHOW(): Fixed scan_button re-positioning if parented to TradeSkillFrame.

torhal [12-29-09 - 02:02]
in addon:TRADE_SKILL_SHOW(): Fixed scan_button re-positioning if parented to TradeSkillFrame.
Filename
ARL.lua
diff --git a/ARL.lua b/ARL.lua
index bb13a88..ef3b8ed 100644
--- a/ARL.lua
+++ b/ARL.lua
@@ -758,6 +758,9 @@ do

 		if not scan_parent or scan_parent == UIParent then
 			scan_button:SetParent(TradeSkillFrame)
+		end
+
+		if scan_parent == TradeSkillFrame then
 			scan_button:ClearAllPoints()

 			local loc = addon.db.profile.scanbuttonlocation