Merge r5409 from 2.1.9, see #1300.

Originally committed to SVN as r5410.
This commit is contained in:
Niels Martin Hansen 2011-06-06 21:12:00 +00:00
parent 23510dcac8
commit a98cfb7685

View file

@ -701,7 +701,8 @@ namespace Automation4 {
int n = laf->last_entry_id;
for (int i = (int)ids.size()-2; i >= 0; --i) {
int id = ids[i];
while (id > n--) laf->last_entry_ptr--;
while (id < n)
n--, laf->last_entry_ptr--;
e = laf->last_entry_ptr++;
delete *e;
laf->ass->Line.erase(e);