summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornijtmans <nijtmans>2009-06-22 05:52:38 (GMT)
committernijtmans <nijtmans>2009-06-22 05:52:38 (GMT)
commitb26869b0edef57b82e649adfae9759d43c7c7f65 (patch)
tree833a9d48d888184d002fd9fa0777741d12968eaf
parentbba9346f9afc059dcd86d77247b7ce7f9e714ecd (diff)
downloadtk-b26869b0edef57b82e649adfae9759d43c7c7f65.zip
tk-b26869b0edef57b82e649adfae9759d43c7c7f65.tar.gz
tk-b26869b0edef57b82e649adfae9759d43c7c7f65.tar.bz2
fix [Bug #220935] canvas dash update problem
-rw-r--r--ChangeLog4
-rw-r--r--generic/tkCanvUtil.c6
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 <nijtmans@users.sf.net>
+
+ * generic/tkCanvUtil.c fix [Bug #220935] canvas dash update problem
+
2009-06-12 Donal K. Fellows <dkf@users.sf.net>
* 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) {