summaryrefslogtreecommitdiff
path: root/xmake/core/ui/rect.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2017-12-14 00:46:35 +0800
committerruki <[email protected]>2017-12-13 22:39:31 +0800
commit42cc615918ee1e4cc3ce435172e9f91dc1df1086 (patch)
tree323c0dbb450f137d1b15eb31a0f279dcd2675309 /xmake/core/ui/rect.lua
parent2694f86469cdd776ba2caba9bcd7ec261457aa2c (diff)
fix log and application bug
Diffstat (limited to 'xmake/core/ui/rect.lua')
-rw-r--r--xmake/core/ui/rect.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/ui/rect.lua b/xmake/core/ui/rect.lua
index 6264ad67c..c7a11330f 100644
--- a/xmake/core/ui/rect.lua
+++ b/xmake/core/ui/rect.lua
@@ -122,9 +122,9 @@ end
-- tostring(r)
function rect:__tostring()
if self:empty() then
- return '[empty]'
+ return '[]'
end
- return '[(' .. self.sx .. ',' .. self.sy .. '),(' .. self.ex .. ',' .. self.ey .. ')]'
+ return string.format("[%d, %d, %d, %d]", self.sx, self.sy, self.ex, self.ey)
end
-- r1 .. r2