1
0
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:
Paul Licameli 2015-08-20 12:15:48 -04:00
parent 653cc89039
commit a2fbd1e208

View File

@ -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.