lua: Fix Range_contains() when we ask for the first frame (which is doc::frame_t=0 internally)

This commit is contained in:
David Capello 2018-11-23 16:07:42 -03:00
parent ed7209e7c6
commit 2f76cbe15c

View File

@ -96,7 +96,8 @@ int Range_contains(lua_State* L)
else if (Cel* cel = may_get_docobj<Cel>(L, 2)) { else if (Cel* cel = may_get_docobj<Cel>(L, 2)) {
result = obj->contains(cel); result = obj->contains(cel);
} }
else if (frame_t frame = get_frame_number_from_arg(L, 2)) { else {
frame_t frame = get_frame_number_from_arg(L, 2);
result = obj->contains(frame); result = obj->contains(frame);
} }
lua_pushboolean(L, result); lua_pushboolean(L, result);