]> gitweb.michael.orlitzky.com - libsvgtiny.git/commitdiff
Fix to use list_size accessor.
authorMichael Drake <tlsa@netsurf-browser.org>
Fri, 23 Aug 2013 09:48:36 +0000 (10:48 +0100)
committerMichael Drake <tlsa@netsurf-browser.org>
Fri, 23 Aug 2013 09:48:36 +0000 (10:48 +0100)
src/svgtiny_gradient.c

index 6842a0b2c2261fdec388ddb00f5ffd9e361e7871..f5984ea313eeb5e4958653b2d3921a120a64a245 100644 (file)
@@ -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)