fix lua51 bug
This commit is contained in:
@@ -39,7 +39,7 @@ function border:init(name, bounds)
|
||||
view.init(self, name, bounds)
|
||||
|
||||
-- check bounds
|
||||
assert(self:width() > 2 and self:height() > 2, string.format("%s: too small!", self))
|
||||
assert(self:width() > 2 and self:height() > 2, string.format("%s: too small!", tostring(self)))
|
||||
end
|
||||
|
||||
-- draw border
|
||||
|
@@ -43,7 +43,7 @@ function window:init(name, bounds, title, shadow)
|
||||
panel.init(self, name, bounds)
|
||||
|
||||
-- check bounds
|
||||
assert(self:width() > 4 and self:height() > 3, string.format("%s: too small!", self))
|
||||
assert(self:width() > 4 and self:height() > 3, string.format("%s: too small!", tostring(self)))
|
||||
|
||||
-- insert shadow
|
||||
if shadow then
|
||||
|
Reference in New Issue
Block a user