13
0

Copy+Paste thinko: use passed-in variable instead of member variable. Maybe fix potential crash.

This commit is contained in:
Ben Loftis 2018-02-10 09:06:46 -06:00
parent 8584ea75d1
commit bc4fa677ec

View File

@ -2723,7 +2723,7 @@ Editor::snap_to_grid (vector<ArdourCanvas::Ruler::Mark> marks, samplepos_t presn
if (m == marks.end ()) {
/* ran out of marks */
before = grid_marks.back().position;
before = marks.back().position;
}
after = m->position;