[Bug] Error when moving CollectionsJournal window
arnvid opened this issue ยท 3 comments
Describe the bug
Error when moving CollectionsJournal window
To Reproduce
Steps to reproduce the behavior:
- Press Shift P
- Try to move the window
- See error
Screenshots
x1 RealUI_Core-2.3.0\Util.lua:95: attempt to perform arithmetic on local 'value' (a nil value)
Stack: [string "@RealUI_Core-2.3.0\Util.lua"]:95: in function 'Round'
[string "@RealUI_Core-2.3.0\Util.lua"]:368: in function 'SetPixelPoint'
[string "@RealUI_Core-2.3.0\Core\FramePoint.lua"]:81: in function <RealUI_Core-2.3.0\Core\FramePoint.lua:80>
Time: 2021/11/29 11:39:53 Index: 3/3
Locals:
value = nil
places = nil
mult = 1
(*temporary) = function =[C]
(*temporary) = nil
(*temporary) = "attempt to perform arithmetic on local 'value' (a nil value)"
Additional context
In 9.1.x the Blizzard_Collections\ changed and it is now a dynamic window (?) - which does not return anything on frame:GetPoint()
function RealUI.SetPixelPoint(frame)
local point, anchor, relPoint, x, y = frame:GetPoint()
if not point then
print("setpixel on invalid frame", frame:GetName())
-- print("debug frame", dumpxyz(frame))
end
local modx, modY = RealUI.Round(x), RealUI.Round(y)