css: Fix radial-gradient() color stop computation

The copy/paste from the linear gradient code had an error.
This commit is contained in:
Benjamin Otte 2016-11-02 15:19:49 +01:00
parent 2d7df8e66a
commit 6dddf0447e

View File

@ -197,7 +197,7 @@ gtk_css_image_radial_draw (GtkCssImage *image,
pos = _gtk_css_number_value_get (stop->offset, radius) / radius;
pos = MAX (pos, 0);
step = pos / (i - last);
step = (pos - offset) / (i - last);
for (last = last + 1; last <= i; last++)
{
const GdkRGBA *rgba;