diff options
| author | ruki <[email protected]> | 2017-12-14 00:46:35 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-12-13 22:39:31 +0800 |
| commit | 42cc615918ee1e4cc3ce435172e9f91dc1df1086 (patch) | |
| tree | 323c0dbb450f137d1b15eb31a0f279dcd2675309 /xmake/core/ui/rect.lua | |
| parent | 2694f86469cdd776ba2caba9bcd7ec261457aa2c (diff) | |
fix log and application bug
Diffstat (limited to 'xmake/core/ui/rect.lua')
| -rw-r--r-- | xmake/core/ui/rect.lua | 4 |
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 |
