From 0892de62a84c197fc2681f0d35951a3c91102373 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Thu, 22 Dec 2011 21:25:19 +0000 Subject: [PATCH] Don't let audio markers snap to themselves Originally committed to SVN as r6101. --- aegisub/src/audio_display.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aegisub/src/audio_display.cpp b/aegisub/src/audio_display.cpp index 4c31999ad..c7d378f76 100644 --- a/aegisub/src/audio_display.cpp +++ b/aegisub/src/audio_display.cpp @@ -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;