libsysprof-ui: improve marks drawing a bit

This commit is contained in:
Christian Hergert
2019-05-13 00:38:15 -07:00
parent 6083e98aff
commit 4af22435db
2 changed files with 16 additions and 12 deletions

View File

@ -294,10 +294,14 @@ item_compare (gconstpointer a,
const Item *ia = a;
const Item *ib = b;
if (ia->begin_time == ib->begin_time)
return ia->end_time - ib->end_time;
return ia->begin_time - ib->begin_time;
if (ia->begin_time < ib->begin_time)
return -1;
else if (ia->begin_time > ib->begin_time)
return 1;
else if (ia->end_time > ib->end_time)
return 1;
else
return 0;
}
static void