summaryrefslogtreecommitdiffstats
path: root/generic/tkCanvUtil.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2015-02-22 00:39:12 (GMT)
committerdgp <dgp@users.sourceforge.net>2015-02-22 00:39:12 (GMT)
commitfdcfa0f0bcbffc5d51687d791e1377ade0577138 (patch)
treebca6942effd32fec3d16de38aff132b0228da2b4 /generic/tkCanvUtil.c
parentf7523e65e48c4bc88a490df4bef313af34e0251e (diff)
downloadtk-fdcfa0f0bcbffc5d51687d791e1377ade0577138.zip
tk-fdcfa0f0bcbffc5d51687d791e1377ade0577138.tar.gz
tk-fdcfa0f0bcbffc5d51687d791e1377ade0577138.tar.bz2
[ab6dab8393] OBOE in loop termination made corrupt dash lines in ps output.
Diffstat (limited to 'generic/tkCanvUtil.c')
-rw-r--r--generic/tkCanvUtil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tkCanvUtil.c b/generic/tkCanvUtil.c
index 23c73e5..cbbc2b4 100644
--- a/generic/tkCanvUtil.c
+++ b/generic/tkCanvUtil.c
@@ -1432,7 +1432,7 @@ Tk_CanvasPsOutline(
char *p = ptr;
converted = Tcl_ObjPrintf("%d", *p++ & 0xff);
- for (i = dash->number-1 ; i>=0 ; i--) {
+ for (i = dash->number-1 ; i>0 ; i--) {
Tcl_AppendPrintfToObj(converted, " %d", *p++ & 0xff);
}
Tcl_AppendObjToObj(psObj, converted);