Update of /cvsroot/audacity/audacity-src/src
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv6674

Modified Files:
        Menus.cpp 
Log Message:
Fixed generation and pasting of clips when "Editing a clip can move other 
clips" is off and there is not enough space available. Reported by Gale.

Index: Menus.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/Menus.cpp,v
retrieving revision 1.504
retrieving revision 1.505
diff -u -d -r1.504 -r1.505
--- Menus.cpp   26 Jul 2009 02:44:50 -0000      1.504
+++ Menus.cpp   26 Jul 2009 13:18:28 -0000      1.505
@@ -3304,12 +3304,10 @@
             ((WaveTrack *) c)->Lock();
 
          if (c->GetKind() == Track::Wave && n && n->GetKind() == Track::Wave)
-            ((WaveTrack*)n)->ClearAndPaste(t0, t1, (WaveTrack*)c);
+            pastedSomething = ((WaveTrack*)n)->ClearAndPaste(t0, t1, 
(WaveTrack*)c);
          else
-            n->Paste(t0, c);
-         
-         pastedSomething = true;
-         
+            pastedSomething = n->Paste(t0, c);
+                 
          // When copying from mono to stereo track, paste the wave form
          // to both channels
          if (n->GetLinked() && !c->GetLinked())


------------------------------------------------------------------------------
_______________________________________________
Audacity-cvs mailing list
Audacity-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/audacity-cvs

Reply via email to