summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2013-08-23 09:48:36 (GMT)
committer Michael Drake <tlsa@netsurf-browser.org>2013-08-23 09:48:36 (GMT)
commita5f7f12cbe1c5de8d1a9cd01bf6e55a2733a66d5 (patch)
tree8ae8ffa15ff1d8ed90bb2ab53ef86e0a08bf4cd2
parentc1790b31d40b6809dfc1f9a6ab49289a372280dd (diff)
downloadlibsvgtiny-a5f7f12cbe1c5de8d1a9cd01bf6e55a2733a66d5.tar.gz
libsvgtiny-a5f7f12cbe1c5de8d1a9cd01bf6e55a2733a66d5.tar.bz2
Fix to use list_size accessor.
-rw-r--r--src/svgtiny_gradient.c2
1 files changed, 1 insertions, 1 deletions
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)