From 17e1d4b8110398354258679622207fb14e4bbd77 Mon Sep 17 00:00:00 2001 From: Michal Szczecinski Date: Tue, 8 Dec 2020 16:13:58 +0100 Subject: [PATCH] evas vector: Fixed gradient color stops length. Fixed evas_vg_gradient_stop_get() API where length was not set properly. Change-Id: I2ffc80182caa0f24c4d350f6904a66c69d7817db --- src/lib/evas/canvas/efl_canvas_vg_gradient.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/evas/canvas/efl_canvas_vg_gradient.c b/src/lib/evas/canvas/efl_canvas_vg_gradient.c index 214ed96..ed9e1c8 100644 --- a/src/lib/evas/canvas/efl_canvas_vg_gradient.c +++ b/src/lib/evas/canvas/efl_canvas_vg_gradient.c @@ -53,6 +53,7 @@ _gradient_stop_get(Evas_Vg_Gradient *obj, Efl_Gfx_Gradient_Stop **colors, unsign if (!gd || !gd->gradient) return; tvg_gradient_get_color_stops(gd->gradient, &stop, &len); + if (length) *length = len; *colors = malloc(sizeof(Efl_Gfx_Gradient_Stop) * len); for (i = 0; i < len; ++i) -- 2.7.4