summaryrefslogtreecommitdiffstats
path: root/tests/canvas.test
diff options
context:
space:
mode:
authorpspjuth <peter.spjuth@gmail.com>2011-04-22 18:17:47 (GMT)
committerpspjuth <peter.spjuth@gmail.com>2011-04-22 18:17:47 (GMT)
commit96d0f850a44c11b73df5d7ca2f775a03d4ecf085 (patch)
tree06687de85c9580309c9596b809371c151b98daf9 /tests/canvas.test
parent8c2d7f6d86393ac9149aa1b2fcada1f52bfada55 (diff)
downloadtk-96d0f850a44c11b73df5d7ca2f775a03d4ecf085.zip
tk-96d0f850a44c11b73df5d7ca2f775a03d4ecf085.tar.gz
tk-96d0f850a44c11b73df5d7ca2f775a03d4ecf085.tar.bz2
[Bug 3291543] There was a crash if dchars removed all coordinates of a polygon.
Diffstat (limited to 'tests/canvas.test')
-rw-r--r--tests/canvas.test8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/canvas.test b/tests/canvas.test
index ed470f9..f62eb2e 100644
--- a/tests/canvas.test
+++ b/tests/canvas.test
@@ -382,6 +382,14 @@ test canvas-11.2 {canvas poly overlap fill check, bug 226357} {
.c itemconfig 1 -width 8
lappend result [.c find over 45 50 45 50]; # outside poly
} {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} {
destroy .c