Initialize properties in the right order.

This commit is contained in:
Jonathan Moore Liles 2008-05-18 22:45:07 -05:00
parent 11add2dd63
commit ef254cfbae
2 changed files with 4 additions and 3 deletions

View File

@ -68,13 +68,14 @@ Tempo_Point::Tempo_Point ( )
Tempo_Point::Tempo_Point ( nframes_t when, float bpm ) Tempo_Point::Tempo_Point ( nframes_t when, float bpm )
{ {
_tempo = bpm; _tempo = bpm;
_r->start = when;
_make_label(); _make_label();
timeline->tempo_track->add( this ); timeline->tempo_track->add( this );
timeline->update_tempomap(); timeline->update_tempomap();
start( when );
log_create(); log_create();
} }

View File

@ -68,13 +68,13 @@ Time_Point::Time_Point ( ) : _time( 4, 4 )
Time_Point::Time_Point ( nframes_t when, int bpb, int note ) : _time( bpb, note ) Time_Point::Time_Point ( nframes_t when, int bpb, int note ) : _time( bpb, note )
{ {
start( when );
_make_label(); _make_label();
timeline->time_track->add( this ); timeline->time_track->add( this );
timeline->update_tempomap(); timeline->update_tempomap();
start( when );
log_create(); log_create();
} }