mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-23 15:50:05 +02:00
Fix bug 1531
This commit is contained in:
parent
6daa2a3a93
commit
e239efe486
@ -2979,16 +2979,8 @@ void AdornedRulerPanel::OnSyncSelToQuickPlay(wxCommandEvent&)
|
|||||||
|
|
||||||
void AdornedRulerPanel::DragSelection()
|
void AdornedRulerPanel::DragSelection()
|
||||||
{
|
{
|
||||||
if (mPlayRegionStart < mPlayRegionEnd) {
|
mViewInfo->selectedRegion.setT0(mPlayRegionStart, false);
|
||||||
mProject->SetSel0(mPlayRegionStart);
|
mViewInfo->selectedRegion.setT1(mPlayRegionEnd, true);
|
||||||
mProject->SetSel1(mPlayRegionEnd);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
mProject->SetSel0(mPlayRegionEnd);
|
|
||||||
mProject->SetSel1(mPlayRegionStart);
|
|
||||||
}
|
|
||||||
mProject->GetTrackPanel()->DisplaySelection();
|
|
||||||
mProject->GetTrackPanel()->Refresh(false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void AdornedRulerPanel::HandleSnapping()
|
void AdornedRulerPanel::HandleSnapping()
|
||||||
|
@ -388,8 +388,8 @@ private:
|
|||||||
bool mIsWE;
|
bool mIsWE;
|
||||||
|
|
||||||
Ruler mRuler;
|
Ruler mRuler;
|
||||||
ViewInfo *const mViewInfo;
|
|
||||||
AudacityProject *const mProject;
|
AudacityProject *const mProject;
|
||||||
|
ViewInfo *const mViewInfo;
|
||||||
TrackList *mTracks;
|
TrackList *mTracks;
|
||||||
|
|
||||||
wxRect mOuter;
|
wxRect mOuter;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user