Update of /cvsroot/audacity/audacity-src/src
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv19603

Modified Files:
        Menus.cpp 
Log Message:
Fix crash bug reported by Stan. 

Index: Menus.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/Menus.cpp,v
retrieving revision 1.499
retrieving revision 1.500
diff -u -d -r1.499 -r1.500
--- Menus.cpp   9 Jul 2009 23:52:18 -0000       1.499
+++ Menus.cpp   13 Jul 2009 09:13:11 -0000      1.500
@@ -3922,7 +3922,8 @@
    
    mTrackPanel->Refresh(false);
    #ifdef EXPERIMENTAL_MIXER_BOARD
-      mMixerBoard->Refresh(false);
+      if (mMixerBoard)
+         mMixerBoard->Refresh(false);
    #endif
 }
 
@@ -5163,7 +5164,7 @@
    while (t) {
       if (t->GetSelected()) {
          #ifdef EXPERIMENTAL_MIXER_BOARD
-            if (t->GetKind() == Track::Wave)
+            if (mMixerBoard && (t->GetKind() == Track::Wave))
                mMixerBoard->RemoveTrackCluster((WaveTrack*)t);
          #endif
          if (!f)
@@ -5196,7 +5197,8 @@
 
    mTrackPanel->Refresh(false);
    #ifdef EXPERIMENTAL_MIXER_BOARD
-      mMixerBoard->Refresh(true);
+      if (mMixerBoard)
+         mMixerBoard->Refresh(true);
    #endif
 }
 


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Audacity-cvs mailing list
Audacity-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/audacity-cvs

Reply via email to