diff options
author | pspjuth <peter.spjuth@gmail.com> | 2011-04-22 18:21:05 (GMT) |
---|---|---|
committer | pspjuth <peter.spjuth@gmail.com> | 2011-04-22 18:21:05 (GMT) |
commit | c4c9147d6b5d077de8e3ed08689177654fcb3139 (patch) | |
tree | 5bb443774b1c95de47d0ef87d86d34d6156cf862 /tests | |
parent | 98811ad6e4133460d650c026452187d6eaef904d (diff) | |
parent | 83af76de9c81339f45ac8abbf7b7fae77de40220 (diff) | |
download | tk-c4c9147d6b5d077de8e3ed08689177654fcb3139.zip tk-c4c9147d6b5d077de8e3ed08689177654fcb3139.tar.gz tk-c4c9147d6b5d077de8e3ed08689177654fcb3139.tar.bz2 |
[Bug 3291543] There was a crash if dchars removed all coordinates of a polygon.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/canvas.test | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/canvas.test b/tests/canvas.test index f6a85fb..e05620b 100644 --- a/tests/canvas.test +++ b/tests/canvas.test @@ -405,6 +405,14 @@ test canvas-11.2 {canvas poly overlap fill check, bug 226357} -setup { .c itemconfig 1 -width 8 lappend result [.c find over 45 50 45 50]; # outside poly } -result {1 1 {} 1 {} 1 1 {} 1 {} 1} +test canvas-11.3 {canvas poly dchars, bug 3291543} { + # This would crash + destroy .c + pack [canvas .c] + .c create polygon 0 0 0 10 10 0 + .c dchars 1 2 end + .c coords 1 +} {} test canvas-12.1 {canvas mm obj, patch SF-403327, 102471} -setup { destroy .c |