Browse Source

Fix invalid read reported by valgrind.

tags/non-daw-v1.1.0
Jonathan Moore Liles 17 years ago
parent
commit
900bfdebb0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      Timeline/Timeline.C

+ 1
- 1
Timeline/Timeline.C View File

@@ -386,7 +386,7 @@ Timeline::draw_measure ( int X, int Y, int W, int H, Fl_Color color, bool BBT )
++ntpi;

tp = (Tempo_Point*)(*tpi);
const Tempo_Point *ntp = (Tempo_Point*)(*ntpi);
const Tempo_Point *ntp = ntpi == tempo_track->_widgets.end() ? NULL : (Tempo_Point*)(*ntpi);

const nframes_t ntpo = ntp ? ntp->offset() : when + x_to_ts( W + 1 );



Loading…
Cancel
Save