X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=profile.c;h=810c47391ad4cef865e7a8f8f673b980100d3d41;hb=499cc0c87c61d517c7953a945da39f4db249f364;hp=11b01b5035a0e4a1581287cfa3c277cc304f1cf2;hpb=5ca49b0460f36ac969b7ef388f586782d584b36d;p=ext%2Fsubsurface.git diff --git a/profile.c b/profile.c index 11b01b5..810c473 100644 --- a/profile.c +++ b/profile.c @@ -202,6 +202,17 @@ static void plot_one_event(struct graphics_context *gc, struct plot_info *pi, st int i, depth = 0; int x,y; + /* is plotting this event disabled? */ + if (event->name) { + for (i = 0; i < evn_used; i++) { + if (! strcmp(event->name, ev_namelist[i].ev_name)) { + if (ev_namelist[i].plot_ev) + break; + else + return; + } + } + } for (i = 0; i < pi->nr; i++) { struct plot_data *data = pi->entry + i; if (event->time.seconds < data->sec)