From 5ca61dc99b198243f08e6f1f3f96e3c87ff818b9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=B8ren=20Sandmann=20Pedersen?= Date: Tue, 5 Jun 2007 11:33:17 -0400 Subject: [PATCH] =?utf8?q?Fix=20bug=20in=20pixman=5Fimage=5Fset=5Ffilter()?= =?utf8?q?=20where=20only=20the=20parameters=20were=20updated,=20not=20the?= =?utf8?q?=20filter=20type.=20Reported=20by=20Michel=20D=C3=A4nzer.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- pixman/pixman-image.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pixman/pixman-image.c b/pixman/pixman-image.c index 0802b86..e7e5d24 100644 --- a/pixman/pixman-image.c +++ b/pixman/pixman-image.c @@ -351,8 +351,10 @@ pixman_image_set_filter (pixman_image_t *image, { image_common_t *common = (image_common_t *)image; - if (params != common->filter_params) + if (params != common->filter_params || filter != common->filter) { + common->filter = filter; + if (common->filter_params) free (common->filter_params); -- 2.7.4