traverso-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Traverso-commit] traverso/src/core Sheet.cpp


From: Remon Sijrier
Subject: [Traverso-commit] traverso/src/core Sheet.cpp
Date: Tue, 12 Feb 2008 11:48:07 +0000

CVSROOT:        /sources/traverso
Module name:    traverso
Changes by:     Remon Sijrier <r_sijrier>       08/02/12 11:48:07

Modified files:
        src/core       : Sheet.cpp 

Log message:
        * add some notes to move_clip

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/traverso/src/core/Sheet.cpp?cvsroot=traverso&r1=1.5&r2=1.6

Patches:
Index: Sheet.cpp
===================================================================
RCS file: /sources/traverso/traverso/src/core/Sheet.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- Sheet.cpp   29 Jan 2008 09:11:55 -0000      1.5
+++ Sheet.cpp   12 Feb 2008 11:48:07 -0000      1.6
@@ -1102,15 +1102,21 @@
 
 void Sheet::move_clip(Track * from, Track * too, AudioClip * clip, TimeRef 
location)
 {
+       PENTER2;
+       
        if (from == too) {
                clip->set_track_start_location(location);
                return;
        }
        
+       // Remove has to be done BEFORE adding, else the APILinkedList logic 
+       // gets messed up for the Tracks AudioClipList, which is an 
APILinkedList :(
        Command::process_command(from->remove_clip(clip, false, true));
        Command::process_command(too->add_clip(clip, false, true));
 
+       if (clip->get_track_start_location() != location) {
        clip->set_track_start_location(location);
+       }
 }
 
 Command* Sheet::set_editing_mode( )




reply via email to

[Prev in Thread] Current Thread [Next in Thread]