Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#2687 canvas polygon -fill default behavior wrong

obsolete: 8.5.5
open
Jeffrey Hobbs
5
2009-09-17
2009-09-17
Stephen Huntley
No

According to the canvas man page, drawing a polygon with option "-fill {}" is supposed to be equivalent to the default behavior (i.e. no fill). However, when -fill option is not specified, the polygon is filled (incorrect); while when "-fill {}" is specified, the polygon is not filled (correct).

Example code:

package require Tk
canvas .c
.c create polygon 96 103 121 120 160 115 174 85 99 33 -outline black
pack .c
destroy .c
canvas .c
.c create polygon 96 103 121 120 160 115 174 85 99 33 -outline black -fill {}
pack .c

Tested on Ubuntu Hardy using ActiveTcl 8.5.5

same behavior in ver 8.4.19

Discussion