Compare commits

...

1 commit

Author SHA1 Message Date
88eda231db output_panel.c: Don't crash on center
.. if no events have been received yet.  Instead, return having
done nothing.
2018-09-17 21:45:52 -05:00

View file

@ -724,6 +724,8 @@ static void handle_center_trace(GtkButton *b, struct output_panel *op)
{
UNUSED(b);
struct snapshot *snst = op->snst;
if(!snst || !snst->events)
return;
uint64_t last_ev = snst->events[snst->events_wp];
double new_centering;
if(last_ev) {