diff options
author | nijtmans <nijtmans@noemail.net> | 2009-06-22 05:52:37 (GMT) |
---|---|---|
committer | nijtmans <nijtmans@noemail.net> | 2009-06-22 05:52:37 (GMT) |
commit | fe09ac68f07e90aeb01f959083d18e0a32b3238d (patch) | |
tree | 833a9d48d888184d002fd9fa0777741d12968eaf /generic | |
parent | 2fea96e5613ec521380586d1a01d369cf57155ca (diff) | |
download | tk-fe09ac68f07e90aeb01f959083d18e0a32b3238d.zip tk-fe09ac68f07e90aeb01f959083d18e0a32b3238d.tar.gz tk-fe09ac68f07e90aeb01f959083d18e0a32b3238d.tar.bz2 |
fix [Bug #220935] canvas dash update problem
FossilOrigin-Name: 4346651f6800ce2d01081923b82e32c82f616fa2
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tkCanvUtil.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tkCanvUtil.c b/generic/tkCanvUtil.c index 85a6c1f..ccc2494 100644 --- a/generic/tkCanvUtil.c +++ b/generic/tkCanvUtil.c @@ -9,7 +9,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkCanvUtil.c,v 1.24 2008/11/27 23:47:09 ferrieux Exp $ + * RCS: @(#) $Id: tkCanvUtil.c,v 1.25 2009/06/22 05:52:38 nijtmans Exp $ */ #include "tkInt.h" @@ -1207,7 +1207,7 @@ Tk_ChangeOutlineGC( } if ((dash->number<-1) || - ((dash->number == -1) && (dash->pattern.array[1] != ','))) { + ((dash->number == -1) && (dash->pattern.array[0] != ','))) { char *q; int i = -dash->number; @@ -1327,7 +1327,7 @@ Tk_ResetOutlineGC( if ((dash->number > 2) || (dash->number < -1) || (dash->number==2 && (dash->pattern.array[0] != dash->pattern.array[1])) || - ((dash->number == -1) && (dash->pattern.array[1] != ','))) { + ((dash->number == -1) && (dash->pattern.array[0] != ','))) { if (dash->number < 0) { dashList = (int) (4 * width + 0.5); } else if (dash->number<3) { |