mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-16 08:09:32 +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);
|
lTrack->HandleClick(event, mCapturedRect, *mViewInfo, &mViewInfo->selectedRegion);
|
||||||
|
|
||||||
if (lTrack->IsAdjustingLabel())
|
if (lTrack->IsAdjustingLabel())
|
||||||
{
|
{
|
||||||
SetCapturedTrack(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
|
//If we are adjusting a label on a labeltrack, do not do anything
|
||||||
//that follows. Instead, redraw the track.
|
//that follows. Instead, redraw the track.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user