aboutsummaryrefslogtreecommitdiff
path: root/Sgraph.c
diff options
context:
space:
mode:
Diffstat (limited to 'Sgraph.c')
-rw-r--r--Sgraph.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Sgraph.c b/Sgraph.c
index 27ff33c..1d9aa4e 100644
--- a/Sgraph.c
+++ b/Sgraph.c
@@ -203,7 +203,7 @@ Redisplay(Widget w, XEvent *event, Region r)
if (!XtIsRealized(w))
return;
- for (i = 0; i < sw->sgraph.size - 1; i++) {
+ for (i = 0; i < sw->core.width - 1; i++) {
y = sw->sgraph.data[i];
if (sw->sgraph.mirror)
x = sw->core.width - i;