libsysprof-gtk: fix alpha check

This commit is contained in:
Christian Hergert
2023-06-30 16:29:13 -07:00
parent 366b89fba1
commit 5493e05100

View File

@ -68,7 +68,7 @@ sysprof_column_layer_snapshot (GtkWidget *widget,
_sysprof_xy_layer_get_xy (SYSPROF_XY_LAYER (self), &x_values, &y_values, &n_values);
if (width == 0 || height == 0 || n_values == 0 || self->color.alpha == 0)
if (width == 0 || height == 0 || n_values == 0)
return;
if (self->color_set)
@ -76,6 +76,9 @@ sysprof_column_layer_snapshot (GtkWidget *widget,
else
color = _sysprof_chart_layer_get_accent_bg_color ();
if (color->alpha == .0)
return;
gtk_snapshot_save (snapshot);
if (!sysprof_xy_layer_get_flip_y (SYSPROF_XY_LAYER (self)))