Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 626586
Collapse All | Expand All

(-)a/src/TrackPanel.cpp (-2 / +5 lines)
Lines 3732-3739 void TrackPanel::DoSlide(wxMouseEvent & event) Link Here
3732
#else
3732
#else
3733
      {
3733
      {
3734
         trySnap = true;
3734
         trySnap = true;
3735
         desiredSlideAmount = rint(mouseTrack->GetRate() * desiredSlideAmount) /
3735
         if (mouseTrack->GetKind() == Track::Wave) {
3736
            mouseTrack->GetRate();  // set it to a sample point
3736
            WaveTrack *mtw = (WaveTrack *)mouseTrack;
3737
            desiredSlideAmount = rint(mtw->GetRate() * desiredSlideAmount) /
3738
               mtw->GetRate();  // set it to a sample point
3739
         }
3737
         if (mSnapManager && mCapturedClip) {
3740
         if (mSnapManager && mCapturedClip) {
3738
            clipLeft = mCapturedClip->GetStartTime() + desiredSlideAmount;
3741
            clipLeft = mCapturedClip->GetStartTime() + desiredSlideAmount;
3739
            clipRight = mCapturedClip->GetEndTime() + desiredSlideAmount;
3742
            clipRight = mCapturedClip->GetEndTime() + desiredSlideAmount;
(-)a/src/TrackPanelAx.cpp (+2 lines)
Lines 353-364 wxAccStatus TrackPanelAx::GetName( int childId, wxString* name ) Link Here
353
                  this is a Time track.*/
353
                  this is a Time track.*/
354
               name->Append( wxT(" ") + wxString(_("Time Track")));
354
               name->Append( wxT(" ") + wxString(_("Time Track")));
355
            }
355
            }
356
#ifdef USE_MIDI
356
            else if (t->GetKind() == Track::Note)
357
            else if (t->GetKind() == Track::Note)
357
            {
358
            {
358
               /* i18n-hint: This is for screen reader software and indicates that
359
               /* i18n-hint: This is for screen reader software and indicates that
359
                  this is a Note track.*/
360
                  this is a Note track.*/
360
               name->Append( wxT(" ") + wxString(_("Note Track")));
361
               name->Append( wxT(" ") + wxString(_("Note Track")));
361
            }
362
            }
363
#endif
362
364
363
            // LLL: Remove these during "refactor"
365
            // LLL: Remove these during "refactor"
364
            if( t->GetMute() )
366
            if( t->GetMute() )

Return to bug 626586