simple translator: bug fix

"Edit/Add a segment..." stopped working at some point.
(Importing text still worked.)
This commit is contained in:
hallgren
2012-10-04 18:02:31 +00:00
parent 1eef49ac93
commit 2afa20f197

View File

@@ -962,10 +962,12 @@ function delete_ix(old,ix) {
function insert_ix(old,ix,x) {
var a=[];
var done=false;
for(var i in old) {
if(i==ix) a.push(x);
if(i==ix) { a.push(x); done=true; }
a.push(old[i])
}
if(!done) a.push(x)
return a;
}