mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-01 16:19:43 +02:00
Fix unreported bug that made labels jump when clicked on, sometimes
This commit is contained in:
parent
653cc89039
commit
a2fbd1e208
@ -6696,14 +6696,15 @@ bool TrackPanel::HandleLabelTrackClick(LabelTrack * lTrack, wxRect &rect, wxMous
|
||||
}
|
||||
}
|
||||
|
||||
mCapturedRect = rect;
|
||||
mCapturedRect.x += kLeftInset;
|
||||
mCapturedRect.width -= kLeftInset;
|
||||
|
||||
lTrack->HandleClick(event, mCapturedRect, *mViewInfo, &mViewInfo->selectedRegion);
|
||||
|
||||
if (lTrack->IsAdjustingLabel())
|
||||
{
|
||||
SetCapturedTrack(lTrack, IsAdjustingLabel);
|
||||
mCapturedRect = rect;
|
||||
mCapturedRect.x += kLeftInset;
|
||||
mCapturedRect.width -= kLeftInset;
|
||||
|
||||
//If we are adjusting a label on a labeltrack, do not do anything
|
||||
//that follows. Instead, redraw the track.
|
||||
|
Loading…
x
Reference in New Issue
Block a user