Skip to content
Snippets Groups Projects
Commit a3445d75 authored by dg's avatar dg
Browse files

fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@3490 51575b47-30f0-44d4-a5cc-537603b46e54
parent f433ce81
No related branches found
No related tags found
No related merge requests found
......@@ -141,7 +141,7 @@ function _M:updateText(v)
self.number = util.bound(self.number + v, self.min, self.max)
text = tostring(self.number)
self.tmp = {}
for i = 1, #text do self.tmp[#self.tmp+1] = text:sub(i, i) end
for i = 1, #text do self.tmp[#self.tmp+1] = text:sub(i, i) if not self.tmp[#self.tmp] then break end end
self.cursor = #self.tmp + 1
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment