libsysprof-gtk: allow last item to have text

This commit is contained in:
Christian Hergert
2023-06-16 15:51:43 -07:00
parent 81453a3ec7
commit dc4d15442f

View File

@ -171,8 +171,7 @@ sysprof_mark_chart_row_snapshot (GtkWidget *widget,
* not overlap and there are at least 20 pixels
* available to render into.
*/
if (i + 1 < n_values &&
values[i+1].begin > v->end &&
if ((i + 1 == n_values || values[i+1].begin > v->end) &&
rect.size.width > 20)
{
g_autoptr(SysprofDocumentMark) mark = g_list_model_get_item (model, v->index);