Fix crash on relayering.
git-svn-id: svn://localhost/ardour2/branches/3.0@5603 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
5cbfdb8bed
commit
94c5a98e02
@ -1999,7 +1999,7 @@ Playlist::relayer ()
|
||||
/* don't send multiple Modified notifications
|
||||
when multiple regions are relayered.
|
||||
*/
|
||||
|
||||
|
||||
freeze ();
|
||||
|
||||
/* Build up a new list of regions on each layer, stored in a set of lists
|
||||
@ -2019,7 +2019,7 @@ Playlist::relayer ()
|
||||
}
|
||||
|
||||
/* hence the size of each time division */
|
||||
double const division_size = (end - start) / divisions;
|
||||
double const division_size = (end - start) / double (divisions);
|
||||
|
||||
vector<vector<RegionList> > layers;
|
||||
layers.push_back (vector<RegionList> (divisions));
|
||||
@ -2054,6 +2054,8 @@ Playlist::relayer ()
|
||||
end_division--;
|
||||
}
|
||||
|
||||
assert (end_division < divisions);
|
||||
|
||||
/* find the lowest layer that this region can go on */
|
||||
size_t j = layers.size();
|
||||
while (j > 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user