From b0aef7202d40f3f45b8914e8bd0edfcc6e5112ad Mon Sep 17 00:00:00 2001 From: Andrea Canciani Date: Fri, 17 Dec 2010 10:44:41 +0100 Subject: pattern: Use cairo_color_stop_t when hashing gradient stops Since 18b48a6ebc044c07f08bafd0abcb68c595c5746c the color of each gradient stop is stored in a cairo_color_stop_t, but _cairo_gradient_color_stops_hash() was not updated accordingly. --- src/cairo-pattern.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/cairo-pattern.c b/src/cairo-pattern.c index 94d37dcfb..e514e3a51 100644 --- a/src/cairo-pattern.c +++ b/src/cairo-pattern.c @@ -4341,7 +4341,7 @@ _cairo_gradient_color_stops_hash (unsigned long hash, sizeof (double)); hash = _cairo_hash_bytes (hash, &gradient->stops[n].color, - sizeof (cairo_color_t)); + sizeof (cairo_color_stop_t)); } return hash; -- cgit v1.2.1