diff options
author | nijtmans <nijtmans> | 2009-06-22 05:52:38 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2009-06-22 05:52:38 (GMT) |
commit | b26869b0edef57b82e649adfae9759d43c7c7f65 (patch) | |
tree | 833a9d48d888184d002fd9fa0777741d12968eaf /generic | |
parent | bba9346f9afc059dcd86d77247b7ce7f9e714ecd (diff) | |
download | tk-b26869b0edef57b82e649adfae9759d43c7c7f65.zip tk-b26869b0edef57b82e649adfae9759d43c7c7f65.tar.gz tk-b26869b0edef57b82e649adfae9759d43c7c7f65.tar.bz2 |
fix [Bug #220935] canvas dash update problem
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) { |