Fix appending and deleting rows via the subtitles object index syntax

Originally committed to SVN as r6079.
This commit is contained in:
Thomas Goyne 2011-12-22 21:21:47 +00:00
parent 38ffdc4135
commit f78d52448e

View file

@ -463,7 +463,7 @@ namespace Automation4 {
else if (n == 0) {
// append line to list
lua_remove(L, 1);
lua_remove(L, 2);
lua_remove(L, 1);
ObjectAppend(L);
}
else {
@ -479,7 +479,7 @@ namespace Automation4 {
else {
// delete
lua_remove(L, 1);
lua_remove(L, 2);
lua_remove(L, 1);
ObjectDelete(L);
}
}