mirror of
https://github.com/linux-man/LoveFrames.git
synced 2024-11-18 16:04:22 +00:00
Fixed Frame:MakeTop() chaining issue
Thanks to htaeD for reporting this.
This commit is contained in:
parent
4dfffef2bc
commit
cea6a20ea3
@ -775,17 +775,17 @@ function newobject:MakeTop()
|
||||
if baseparent.type == "frame" then
|
||||
baseparent:MakeTop()
|
||||
end
|
||||
return
|
||||
return self
|
||||
end
|
||||
|
||||
-- check to see if the object is the only child of the base object
|
||||
if numbasechildren == 1 then
|
||||
return
|
||||
return self
|
||||
end
|
||||
|
||||
-- check to see if the object is already at the top
|
||||
if basechildren[numbasechildren] == self then
|
||||
return
|
||||
return self
|
||||
end
|
||||
|
||||
-- make this the top object
|
||||
|
Loading…
Reference in New Issue
Block a user