mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-17 20:26:30 +01:00
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
1 changed files with 4 additions and 2 deletions
|
|
@ -2019,7 +2019,7 @@ Playlist::relayer ()
|
||||||
}
|
}
|
||||||
|
|
||||||
/* hence the size of each time division */
|
/* 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;
|
vector<vector<RegionList> > layers;
|
||||||
layers.push_back (vector<RegionList> (divisions));
|
layers.push_back (vector<RegionList> (divisions));
|
||||||
|
|
@ -2054,6 +2054,8 @@ Playlist::relayer ()
|
||||||
end_division--;
|
end_division--;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
assert (end_division < divisions);
|
||||||
|
|
||||||
/* find the lowest layer that this region can go on */
|
/* find the lowest layer that this region can go on */
|
||||||
size_t j = layers.size();
|
size_t j = layers.size();
|
||||||
while (j > 0) {
|
while (j > 0) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue