Update of /cvsroot/audacity/audacity-src/src/toolbars
In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv21689/src/toolbars
Modified Files:
ControlToolBar.cpp
Log Message:
Fix build when USE_MIDI is not defined
Index: ControlToolBar.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/toolbars/ControlToolBar.cpp,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- ControlToolBar.cpp 27 Jul 2008 03:06:05 -0000 1.30
+++ ControlToolBar.cpp 9 Aug 2008 05:45:47 -0000 1.31
@@ -332,9 +332,12 @@
// Only interested in audio type tracks
if (p) {
TrackListIterator iter( p->GetTracks() );
-
for (Track *t = iter.First(); t; t = iter.Next()) {
- if (t->GetKind() == Track::Wave || t->GetKind() == Track::Note) {
+ if (t->GetKind() == Track::Wave
+#if defined(USE_MIDI)
+ || t->GetKind() == Track::Note
+#endif
+ ) {
tracks = true;
break;
}
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs