diff options
author | peter.spjuth@gmail.com <pspjuth> | 2011-04-22 18:24:21 (GMT) |
---|---|---|
committer | peter.spjuth@gmail.com <pspjuth> | 2011-04-22 18:24:21 (GMT) |
commit | 3c954929afd77f87255a82129d32439a88698a6b (patch) | |
tree | 6d17f823dc66eb53358a709b288da44d6a0922b9 /tests | |
parent | 5146a4933ab50908a23d32a411f99b607a740094 (diff) | |
parent | 1726fe58cee9fa333892d7a6b7fbdc6688e9e7f7 (diff) | |
download | tk-3c954929afd77f87255a82129d32439a88698a6b.zip tk-3c954929afd77f87255a82129d32439a88698a6b.tar.gz tk-3c954929afd77f87255a82129d32439a88698a6b.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 065de67..19fbbde 100644 --- a/tests/canvas.test +++ b/tests/canvas.test @@ -526,6 +526,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 |