fixed select all crash and multiple effect deleting crash

This commit is contained in:
itsmattkc
2018-08-27 17:53:48 +10:00
parent a4246d1235
commit e3f1d31a2b
2 changed files with 8 additions and 6 deletions
+1 -1
View File
@@ -727,7 +727,7 @@ void EffectDeleteCommand::redo() {
deleted_objects.clear();
for (int i=0;i<clips.size();i++) {
Clip* c = clips.at(i);
int fx_id = fx.at(i);
int fx_id = fx.at(i) - i;
deleted_objects.append(c->effects.at(fx_id));
c->effects.removeAt(fx_id);
}