mirror of https://github.com/odrling/Aegisub
Don't let audio markers snap to themselves
Originally committed to SVN as r6101.
This commit is contained in:
parent
5e9339611b
commit
0892de62a8
|
@ -523,7 +523,7 @@ public:
|
||||||
controller->GetMarkers(snap_sample_range, potential_snaps);
|
controller->GetMarkers(snap_sample_range, potential_snaps);
|
||||||
for (AudioMarkerVector::iterator mi = potential_snaps.begin(); mi != potential_snaps.end(); ++mi)
|
for (AudioMarkerVector::iterator mi = potential_snaps.begin(); mi != potential_snaps.end(); ++mi)
|
||||||
{
|
{
|
||||||
if ((*mi)->CanSnap())
|
if (*mi != marker && (*mi)->CanSnap())
|
||||||
{
|
{
|
||||||
if (!snap_marker)
|
if (!snap_marker)
|
||||||
snap_marker = *mi;
|
snap_marker = *mi;
|
||||||
|
|
Loading…
Reference in New Issue