css: Fix the fallback image implementation

If fallback->used is unset, we must not use it to index the array.

Fixes: #6844
This commit is contained in:
Matthias Clasen
2024-07-07 15:36:57 -04:00
parent fc4c6525e6
commit ea392cf2b6

View File

@@ -321,6 +321,8 @@ gtk_css_image_fallback_contains_current_color (GtkCssImage *image)
if (gtk_css_image_contains_current_color (fallback->images[i]))
return TRUE;
}
return FALSE;
}
return gtk_css_image_contains_current_color (fallback->images[fallback->used]);