From: Michael Drake Date: Fri, 23 Aug 2013 09:48:36 +0000 (+0100) Subject: Fix to use list_size accessor. X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=a5f7f12cbe1c5de8d1a9cd01bf6e55a2733a66d5;p=libsvgtiny.git Fix to use list_size accessor. --- diff --git a/src/svgtiny_gradient.c b/src/svgtiny_gradient.c index 6842a0b..f5984ea 100644 --- a/src/svgtiny_gradient.c +++ b/src/svgtiny_gradient.c @@ -658,7 +658,7 @@ svgtiny_code svgtiny_add_path_linear_gradient(float *p, unsigned int n, /* render triangle vertices with r values for debugging */ #ifdef GRADIENT_DEBUG - for (unsigned int i = 0; i != pts->size; i++) { + for (unsigned int i = 0; i != svgtiny_list_size(pts); i++) { struct grad_point *point = svgtiny_list_get(pts, i); struct svgtiny_shape *shape = svgtiny_add_shape(state); if (!shape)