diff options
author | N.N. <federico__@users.sourceforge.net> | 2007-09-23 08:22:11 +0000 |
---|---|---|
committer | N.N. <federico__@users.sourceforge.net> | 2007-09-23 08:22:11 +0000 |
commit | a0f084c2f27d5b9e154ee20fac2a8ce358b9d4db (patch) | |
tree | 16ae31e9ad4f5631e369d8a7cfbb3c45e0f9b57e /tracker | |
parent | 2fc1e19accff005124adedde53f33cea4df020cf (diff) |
fixed a bug in getitem (thanks Patrice Colet)
svn path=/trunk/externals/ffext/; revision=8750
Diffstat (limited to 'tracker')
-rw-r--r-- | tracker/tracker.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tracker/tracker.c b/tracker/tracker.c index 429f6d2..f768290 100644 --- a/tracker/tracker.c +++ b/tracker/tracker.c @@ -655,7 +655,7 @@ static void tracker_getitem(t_tracker* x, t_float row, t_float col) { introw = introw % x->x_rows; if(introw < 0) introw = 0; intcol = (int)col; - intcol = introw % x->x_columns; + intcol = intcol % x->x_columns; if(intcol < 0) intcol = 0; SETFLOAT(&a, x->x_data[introw][intcol]); |