projects
/
goodguy
/
cinelerra.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add auto next/prev tab (alt-a), update shortcuts, fix keyframe paste track tabbing...
[goodguy/cinelerra.git]
/
cinelerra-5.1
/
cinelerra
/
pluginset.C
diff --git
a/cinelerra-5.1/cinelerra/pluginset.C
b/cinelerra-5.1/cinelerra/pluginset.C
index 86bb4b6687290e24f3904ec637b021481f466cfc..575f04651ce78c10fc33d24958b618ecb4c65ac4 100644
(file)
--- a/
cinelerra-5.1/cinelerra/pluginset.C
+++ b/
cinelerra-5.1/cinelerra/pluginset.C
@@
-160,6
+160,10
@@
Edit* PluginSet::insert_edit_after(Edit *previous_edit)
KeyFrame *PluginSet::nearest_keyframe(int64_t pos, int dir)
{
KeyFrame *PluginSet::nearest_keyframe(int64_t pos, int dir)
{
+ if( first && pos < first->startproject )
+ pos = first->startproject;
+ else if( last && pos > last->startproject+last->length )
+ pos = last->startproject+last->length;
Plugin *plugin = (Plugin*)editof(pos, dir, 0);
if( !plugin ) return 0;
KeyFrame *keyframe = (KeyFrame *)(dir == PLAY_FORWARD ?
Plugin *plugin = (Plugin*)editof(pos, dir, 0);
if( !plugin ) return 0;
KeyFrame *keyframe = (KeyFrame *)(dir == PLAY_FORWARD ?