From c87bc48de30ae06bf64a6edfa5feb784bf18a832 Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Sat, 30 Apr 2016 12:49:34 -0400 Subject: [PATCH] Avoid assertions if you hit R while dragging in the ruler, then left click again --- src/widgets/Ruler.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/widgets/Ruler.cpp b/src/widgets/Ruler.cpp index 790f901c3..d68d116be 100644 --- a/src/widgets/Ruler.cpp +++ b/src/widgets/Ruler.cpp @@ -2109,8 +2109,11 @@ bool AdornedRulerPanel::IsWithinMarker(int mousePosX, double markerTime) void AdornedRulerPanel::OnMouseEvents(wxMouseEvent &evt) { // Disable mouse actions on Timeline while recording. - if (mIsRecording) + if (mIsRecording) { + if (HasCapture()) + ReleaseMouse(); return; + } const bool inScrubZone = // only if scrubbing is allowed now