projects
/
goodguy
/
history.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
bootstrap cinfinity picons, rework picon access, chaninfo tweak
[goodguy/history.git]
/
cinelerra-5.1
/
cinelerra
/
swindow.C
diff --git
a/cinelerra-5.1/cinelerra/swindow.C
b/cinelerra-5.1/cinelerra/swindow.C
index 1d33f4b15224e166b8f3293a2c3e649391e8d55a..fd173764f8eab5d61e4d4218c986e0a3af099422 100644
(file)
--- a/
cinelerra-5.1/cinelerra/swindow.C
+++ b/
cinelerra-5.1/cinelerra/swindow.C
@@
-356,6
+356,7
@@
void SWindowGUI::set_script_pos(int64_t entry_no, int text_no)
int SWindowGUI::load_selection(int pos, int row)
{
+ if( pos < 0 || pos >= script.size() ) return 1;
ScriptLines *texts = script[pos];
char *rp = texts->get_text_row(row);
if( !rp || *rp == '=' || *rp == '*' || *rp=='\n' ) return 1;