Update of /cvsroot/audacity/audacity-src/src
In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv14437
Modified Files:
Project.cpp
Log Message:
Fix crash on corrupt wave import
Index: Project.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/Project.cpp,v
retrieving revision 1.289
retrieving revision 1.290
diff -u -d -r1.289 -r1.290
--- Project.cpp 10 Nov 2006 06:11:40 -0000 1.289
+++ Project.cpp 17 Nov 2006 03:57:11 -0000 1.290
@@ -2251,7 +2251,7 @@
if (newTracks[i]->GetKind() == WaveTrack::Wave)
{
WaveClip* clip = ((WaveTrack*)newTracks[i])->GetClipByIndex(0);
- if (clip)
+ if (clip && clip->GetSequence()->GetBlockArray()->GetCount())
{
SeqBlock* block = clip->GetSequence()->GetBlockArray()->Item(0);
if (block->f->IsAlias())
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs