From 77b56cf8bce1b56e3b9d6004937f9a2179e51e0a Mon Sep 17 00:00:00 2001 From: "v.audacity" Date: Mon, 31 Mar 2014 00:41:16 +0000 Subject: [PATCH] Fix crash bug caused by bug 705 patch. --- src/TrackPanel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TrackPanel.cpp b/src/TrackPanel.cpp index 4d37346ce..3ef16c50c 100644 --- a/src/TrackPanel.cpp +++ b/src/TrackPanel.cpp @@ -5340,7 +5340,7 @@ bool TrackPanel::HandleLabelTrackMouseEvent(LabelTrack * lTrack, wxRect &r, wxMo } } else if (event.Dragging()) { ; - } else if (event.LeftUp() && (mCapturedTrack->GetKind() == Track::Label)) { + } else if (event.LeftUp() && mCapturedTrack && (mCapturedTrack->GetKind() == Track::Label)) { SetCapturedTrack( NULL ); }