Tk Source Code

View Ticket
Login
Ticket UUID: 578654
Title: Canvas lines -smooth config problem
Type: Bug Version: None
Submitter: dkf Created on: 2002-07-08 13:12:11
Subsystem: 04. Canvas Basics Assigned To: hobbs
Priority: 9 Immediate Severity:
Status: Closed Last Modified: 2002-08-08 11:53:40
Resolution: Fixed Closed By: hobbs
    Closed on: 2002-08-08 04:53:40
Description:
Tcl bug 571682 (submitted by someone to the wrong
project) can really described as a complaint that the
following code doesn't work:

  pack [canvas .c]
  .c create line 0 0 0 2 2 2 -smooth 1 -tag src
  set s [.c itemcget src -smooth]
  .c create line 1 1 1 3 3 3 -smooth $s

Problem is that although -smooth accepts only boolean
values for -smooth at the moment, "-smooth 1" gets
reported back as "bezier".  The problem (in
tkCanvUtil.c) is that tkBezierSmoothMethod is not part
of the "smoothMethod" assoc-data (maybe a missing init
funcion?)

The documentation in canvas.n needs updating too.
User Comments: hobbs added on 2002-08-08 11:53:40:
Logged In: YES 
user_id=72656

Actually it isn't just booleans accepted anymore ... weird -
smooth option.  Corrected to recognize built-in bezier method 
in 8.4b2.