From ab23ec296deea0d459141807a331242d86580c3f Mon Sep 17 00:00:00 2001 From: Pinya <800pin.ru@gmail.com> Date: Thu, 14 Dec 2017 20:43:50 +0300 Subject: [PATCH] fix FrameStack sort error instead of GetRect use GetLeft, GetBottom, GetRight, GetTop --- !DebugTools/Compatibility.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/!DebugTools/Compatibility.lua b/!DebugTools/Compatibility.lua index ef8b63e..5f3d0fe 100644 --- a/!DebugTools/Compatibility.lua +++ b/!DebugTools/Compatibility.lua @@ -86,7 +86,11 @@ local function FrameStackSort(b, a) return end - return a < b + if a and b then + return a < b + else + return + end end function UpdateFrameStack(tooltip, showHidden) @@ -109,7 +113,7 @@ function UpdateFrameStack(tooltip, showHidden) f, nf = nf, EnumerateFrames(nf) local es = f:GetEffectiveScale() or 1 - local Fl, Fb, Fr, Ft = f:GetRect() + local Fl, Fb, Fr, Ft = f:GetLeft(), f:GetBottom(), f:GetRight(), f:GetTop() Fl = Fl or -1 Fb = Fb or -1 Fr = Fl + (Fr or -1)