Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorPeter Schlaile <peter@schlaile.de>2007-12-23 22:21:43 +0300
committerPeter Schlaile <peter@schlaile.de>2007-12-23 22:21:43 +0300
commit9f7182b8c819279b74245ba4f0180a326ea26b2d (patch)
treead302f147e8e2cfa9ae4add085fd62cfae4558e1 /source
parent6cbc3daf34c0d59383dfe01360608ffc5dee2fdf (diff)
== Sequencer ==
[#7861] Sequencer segfaults when trying to add images Fixed some _really_ stupid bugs in transform_seq, that made it segfault if one selected 0 images.
Diffstat (limited to 'source')
-rw-r--r--source/blender/src/editseq.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/src/editseq.c b/source/blender/src/editseq.c
index bc453dd5a2e..c3264812c4b 100644
--- a/source/blender/src/editseq.c
+++ b/source/blender/src/editseq.c
@@ -2893,7 +2893,8 @@ void transform_seq(int mode, int context)
TimeMarker *marker;
/* looping on sequences, WHILE_SEQ macro allocates memory each time */
- int totseq_index, seq_index; Sequence **seqar;
+ int totseq_index, seq_index;
+ Sequence **seqar = 0;
if(mode!='g' && mode!='e') return; /* from gesture */
@@ -2904,8 +2905,10 @@ void transform_seq(int mode, int context)
/* Build the sequence array once, be sure to free it */
build_seqar( ed->seqbasep, &seqar, &totseq_index );
- for(seq_index=0, seq=seqar[0]; seq_index < totseq_index; seq=seqar[++seq_index]) {
- if(seq->flag & SELECT) totstrip++;
+ if (seqar) {
+ for(seq_index=0, seq=seqar[0]; seq_index < totseq_index; seq=seqar[++seq_index]) {
+ if(seq->flag & SELECT) totstrip++;
+ }
}
if (sseq->flag & SEQ_MARKER_TRANS) {