Update of /cvsroot/audacity/audacity-src/src In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv593/src
Modified Files: WaveTrack.cpp Log Message: Stops right-hand clip moving on a split. Index: WaveTrack.cpp =================================================================== RCS file: /cvsroot/audacity/audacity-src/src/WaveTrack.cpp,v retrieving revision 1.96 retrieving revision 1.97 diff -u -d -r1.96 -r1.97 --- WaveTrack.cpp 21 Feb 2007 08:10:28 -0000 1.96 +++ WaveTrack.cpp 24 Mar 2007 23:51:46 -0000 1.97 @@ -1481,7 +1481,8 @@ delete newClip; return false; } - newClip->Offset(t - c->GetStartTime()); + longSampleCount here = floor(((t - c->GetStartTime() - mOffset) * mRate) + 0.5); + newClip->Offset((double)here/(double)mRate); mClips.Append(newClip); return true; } ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Audacity-cvs mailing list Audacity-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/audacity-cvs