From 02d1dfce4b0040e6ac57d20c8e5af9b1d283ea94 Mon Sep 17 00:00:00 2001
From: Jonathan Wilkes <jancsika@yahoo.com>
Date: Thu, 28 Aug 2014 16:51:51 -0400
Subject: [PATCH] use [plot] xloc when calculating the basex for its elements

---
 pd/src/g_template.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pd/src/g_template.c b/pd/src/g_template.c
index 58887122b..3c08de3f5 100644
--- a/pd/src/g_template.c
+++ b/pd/src/g_template.c
@@ -4713,7 +4713,7 @@ static void plot_getrect(t_gobj *z, t_glist *glist,
                         *(t_float *)(((char *)(array->a_vec) + elemsize * i)
                             + xonset));
                 //else usexloc = x1; //usexloc = basex + xsum, xsum += xinc;
-                usexloc = basex + xsum, xsum += xinc;
+                usexloc = xloc + basex + xsum, xsum += xinc;
                 if (yonset >= 0)
                     yval = *(t_float *)(((char *)(array->a_vec) + elemsize * i)
                         + yonset);
-- 
GitLab