api: abort autopoint if no center was found

This commit is contained in:
shagu
2018-08-18 17:32:19 +02:00
parent e4251d35b6
commit dab55ff292
+2
View File
@@ -580,6 +580,8 @@ function pfUI.api.SetAutoPoint(frame, parent, spacing)
local x, y = parent:GetCenter()
if not x or not y then return end
local off = spacing or 0
frame:ClearAllPoints()