lib/dtutils/string - converted element from string to number for use in test
This commit is contained in:
@@ -680,7 +680,8 @@ local function build_rollname_substitution_list(image, variable_string)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local path = du.split(image.film.path, dt.configuration.running_os ~= "windows" and "/" or "\\")
|
local path = du.split(image.film.path, dt.configuration.running_os ~= "windows" and "/" or "\\")
|
||||||
if element > #path then
|
|
||||||
|
if tonumber(element) > #path then
|
||||||
substitutes["ROLL.NAME"] = ""
|
substitutes["ROLL.NAME"] = ""
|
||||||
log.msg(log.warn, "ROLL.NAME element requested was more than number of elements in film roll")
|
log.msg(log.warn, "ROLL.NAME element requested was more than number of elements in film roll")
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user