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
+7 -5
View File
@@ -315,11 +315,13 @@ void Timeline::select_all() {
selections.clear();
for (int i=0;i<sequence->clip_count();i++) {
Clip* c = sequence->get_clip(i);
Selection s;
s.in = c->timeline_in;
s.out = c->timeline_out;
s.track = c->track;
if (c != NULL) selections.append(s);
if (c != NULL) {
Selection s;
s.in = c->timeline_in;
s.out = c->timeline_out;
s.track = c->track;
selections.append(s);
}
}
repaint_timeline();
}