File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 239239
240240local function incValue (inc )
241241 local f = Page .fields [currentField ]
242- local idx = f .i or currentField
243242 local scale = (f .scale or 1 )
244243 local mult = (f .mult or 1 )
245244 f .value = clipValue (f .value + ((inc * mult )/ scale ), ((f .min or 0 )/ scale ), ((f .max or 255 )/ scale ))
@@ -384,9 +383,8 @@ local function run_ui(event)
384383 incField (1 )
385384 elseif event == EVT_VIRTUAL_ENTER then
386385 if Page then
387- local field = Page .fields [currentField ]
388- local idx = field .i or currentField
389- if Page .values and Page .values [idx ] and (field .ro ~= true ) then
386+ local f = Page .fields [currentField ]
387+ if Page .values and Page .values [f .vals [# f .vals ]] and not f .ro then
390388 pageState = pageStatus .editing
391389 end
392390 end
You can’t perform that action at this time.
0 commit comments