1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/audio/lmms/files/patch-src_tracks_instrument__track.cpp
Jean-Yves Lefort 9465e8d372 Fix a crash.
2006-12-05 09:18:33 +00:00

12 lines
477 B
C++

--- src/tracks/instrument_track.cpp.orig Mon Dec 4 15:22:32 2006
+++ src/tracks/instrument_track.cpp Tue Dec 5 09:49:12 2006
@@ -919,7 +919,7 @@
trackContentObject * tco = getTCO( _tco_num );
tcos.push_back( tco );
bb_track = bbTrack::findBBTrack( _tco_num, eng() );
- if( !( bb_track->automationDisabled( this )
+ if( bb_track != NULL && !( bb_track->automationDisabled( this )
|| dynamic_cast<pattern *>( tco )->empty() ) )
{
sendMidiTime( _start );