mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 06:15:26 +00:00
Don't plot an event if an event is disabled in ev_namelist
We don't have a way to actually configure this in the app, yet, but toggling the bits in the debugger shows that this works, so commit this code now. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
5ca49b0460
commit
499cc0c87c
1 changed files with 11 additions and 0 deletions
11
profile.c
11
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)
|
||||
|
|
Loading…
Add table
Reference in a new issue