mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-16 08:34:10 +02:00
Reverting previous change, since it was using mViewInfo.sel0/1 at the time of pasting, not of copying.
This commit is contained in:
parent
82275c946e
commit
50a61e1570
@ -3538,14 +3538,8 @@ bool AudacityProject::HandlePasteNothingSelected()
|
|||||||
pClip = iterClip.Next();
|
pClip = iterClip.Next();
|
||||||
}
|
}
|
||||||
|
|
||||||
// select the right amount, which is probably impossible with various sample rates
|
mViewInfo.sel0 = 0.0;
|
||||||
// so do it at the sample rate of the project
|
mViewInfo.sel1 = msClipLen;
|
||||||
AudacityProject *p = GetActiveProject();
|
|
||||||
double projRate = p->GetRate();
|
|
||||||
double quantMT0 = (double)((sampleCount)floor(mViewInfo.sel0 * projRate + 0.5))/projRate;
|
|
||||||
double quantMT1 = (double)((sampleCount)floor(mViewInfo.sel1 * projRate + 0.5))/projRate;
|
|
||||||
mViewInfo.sel0 = 0.0; // anywhere else and this should be half a sample earlier
|
|
||||||
mViewInfo.sel1 = quantMT1 - quantMT0;
|
|
||||||
|
|
||||||
PushState(_("Pasted from the clipboard"), _("Paste"));
|
PushState(_("Pasted from the clipboard"), _("Paste"));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user