forked from mia/Aegisub
Fix appending and deleting rows via the subtitles object index syntax
Originally committed to SVN as r6079.
This commit is contained in:
parent
38ffdc4135
commit
f78d52448e
1 changed files with 2 additions and 2 deletions
|
@ -463,7 +463,7 @@ namespace Automation4 {
|
||||||
else if (n == 0) {
|
else if (n == 0) {
|
||||||
// append line to list
|
// append line to list
|
||||||
lua_remove(L, 1);
|
lua_remove(L, 1);
|
||||||
lua_remove(L, 2);
|
lua_remove(L, 1);
|
||||||
ObjectAppend(L);
|
ObjectAppend(L);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -479,7 +479,7 @@ namespace Automation4 {
|
||||||
else {
|
else {
|
||||||
// delete
|
// delete
|
||||||
lua_remove(L, 1);
|
lua_remove(L, 1);
|
||||||
lua_remove(L, 2);
|
lua_remove(L, 1);
|
||||||
ObjectDelete(L);
|
ObjectDelete(L);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue