From b26869b0edef57b82e649adfae9759d43c7c7f65 Mon Sep 17 00:00:00 2001 From: nijtmans Date: Mon, 22 Jun 2009 05:52:38 +0000 Subject: fix [Bug #220935] canvas dash update problem --- ChangeLog | 4 ++++ generic/tkCanvUtil.c | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2889728..557fbd3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2009-06-22 Jan Nijtmans + + * generic/tkCanvUtil.c fix [Bug #220935] canvas dash update problem + 2009-06-12 Donal K. Fellows * generic/tkInt.decls (TkOrientParseProc, TkOrientPrintProc): 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) { -- cgit v0.12