From 793f52aeab1066f615f7628025d306bdf115a580 Mon Sep 17 00:00:00 2001 From: mchinen Date: Fri, 29 Apr 2011 13:27:37 +0000 Subject: [PATCH] Bug 373 (P2) - fix case where a label track would crash sync lock. This problem was recently introduced by fixes to bug 373. --- src/TrackPanel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TrackPanel.cpp b/src/TrackPanel.cpp index 29a62f965..07d0d22f7 100644 --- a/src/TrackPanel.cpp +++ b/src/TrackPanel.cpp @@ -7627,9 +7627,9 @@ bool TrackPanel::MoveClipToTrack(WaveClip *clip, WaveTrack* dst) bool did1, did2; did1 = did2 = false; for (i = 0; i < mCapturedClipArray.GetCount(); i++) { - if (mCapturedClipArray[i].clip == clip) { + if (clip && mCapturedClipArray[i].clip == clip) { mCapturedClipArray[i].track = dst; - } else if (mCapturedClipArray[i].clip == clip2) { + } else if (clip2 && mCapturedClipArray[i].clip == clip2) { mCapturedClipArray[i].track = dst2; } }