diff options
author | hobbs <hobbs> | 2002-08-08 04:54:01 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2002-08-08 04:54:01 (GMT) |
commit | b6cc3dae260ea6057e2ec4e2c2a3fbfde980e749 (patch) | |
tree | 99a73ffd04f58ed0cfbd13ede9ba4d9774e3c645 /generic/tkCanvUtil.c | |
parent | b0ec0f0dcc473d79df802c58743b520ea0ff3665 (diff) | |
download | tk-b6cc3dae260ea6057e2ec4e2c2a3fbfde980e749.zip tk-b6cc3dae260ea6057e2ec4e2c2a3fbfde980e749.tar.gz tk-b6cc3dae260ea6057e2ec4e2c2a3fbfde980e749.tar.bz2 |
* generic/tkCanvUtil.c (TkSmoothParseProc): recognize the built-in
bezier method by name. [Bug #578654]
* doc/canvas.n: update to note that -smooth really doesn't take
or return just booleans.
Diffstat (limited to 'generic/tkCanvUtil.c')
-rw-r--r-- | generic/tkCanvUtil.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/generic/tkCanvUtil.c b/generic/tkCanvUtil.c index 80ba194..eb0c3cc 100644 --- a/generic/tkCanvUtil.c +++ b/generic/tkCanvUtil.c @@ -10,7 +10,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.7 2002/08/05 04:30:38 dgp Exp $ + * RCS: @(#) $Id: tkCanvUtil.c,v 1.8 2002/08/08 04:54:01 hobbs Exp $ */ #include "tkInt.h" @@ -706,8 +706,15 @@ TkSmoothParseProc(clientData, interp, tkwin, value, widgRec, offset) if (smooth) { *smoothPtr = smooth; return TCL_OK; + } else if (strncmp(value, tkBezierSmoothMethod.name, length) == 0) { + /* + * We need to do handle the built-in bezier method. + */ + *smoothPtr = &tkBezierSmoothMethod; + return TCL_OK; } + if (Tcl_GetBoolean(interp, (char *) value, &b) != TCL_OK) { return TCL_ERROR; } |