Copy+Paste thinko: use passed-in variable instead of member variable. Maybe fix potential crash.
This commit is contained in:
parent
8584ea75d1
commit
bc4fa677ec
@ -2723,7 +2723,7 @@ Editor::snap_to_grid (vector<ArdourCanvas::Ruler::Mark> marks, samplepos_t presn
|
|||||||
|
|
||||||
if (m == marks.end ()) {
|
if (m == marks.end ()) {
|
||||||
/* ran out of marks */
|
/* ran out of marks */
|
||||||
before = grid_marks.back().position;
|
before = marks.back().position;
|
||||||
}
|
}
|
||||||
|
|
||||||
after = m->position;
|
after = m->position;
|
||||||
|
Loading…
Reference in New Issue
Block a user