Don't let audio markers snap to themselves

Originally committed to SVN as r6101.
This commit is contained in:
Thomas Goyne 2011-12-22 21:25:19 +00:00
parent 5e9339611b
commit 0892de62a8

View file

@ -523,7 +523,7 @@ public:
controller->GetMarkers(snap_sample_range, potential_snaps);
for (AudioMarkerVector::iterator mi = potential_snaps.begin(); mi != potential_snaps.end(); ++mi)
{
if ((*mi)->CanSnap())
if (*mi != marker && (*mi)->CanSnap())
{
if (!snap_marker)
snap_marker = *mi;