projects
/
goodguy
/
history.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fullscreen tweaks, vwdw refresh frame scale, cleanup
[goodguy/history.git]
/
cinelerra-5.1
/
cinelerra
/
autos.C
diff --git
a/cinelerra-5.1/cinelerra/autos.C
b/cinelerra-5.1/cinelerra/autos.C
index 49a8ea1cdc6674f8afd5c6b07cb635298349dad7..ced078364c5578980abe367c9324b39109f1adf9 100644
(file)
--- a/
cinelerra-5.1/cinelerra/autos.C
+++ b/
cinelerra-5.1/cinelerra/autos.C
@@
-502,15
+502,17
@@
int Autos::copy(int64_t start,
//printf("Autos::copy 10 %d %d %p\n", default_only, start, autoof(start));
if(active_only || (!default_only && !active_only))
{
//printf("Autos::copy 10 %d %d %p\n", default_only, start, autoof(start));
if(active_only || (!default_only && !active_only))
{
- for(Auto* current = autoof(start);
- current && current->position <= end;
- current = NEXT)
- {
+ Auto *current = autoof(start);
+// need the last one if past the end
+ if( !current && last )
+ last->copy(start, end, file, default_only);
+
+ while( current && current->position <= end ) {
// Want to copy single keyframes by putting the cursor on them
// Want to copy single keyframes by putting the cursor on them
- if(current->position >= start && current->position <= end)
- {
+ if( current->position >= start && current->position <= end ) {
current->copy(start, end, file, default_only);
}
current->copy(start, end, file, default_only);
}
+ current = NEXT;
}
}
// Copy default auto again to make it the active auto on the clipboard
}
}
// Copy default auto again to make it the active auto on the clipboard