summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorhobbs <hobbs>2003-05-11 00:57:09 (GMT)
committerhobbs <hobbs>2003-05-11 00:57:09 (GMT)
commit996aa5aa5d6fca18e46c0f25c7f25589a1d85003 (patch)
tree8020fdf84b9d66b4f2cf40529b7f25312376747d /tests
parent513919cbad4d351c94c5bf05908de070e5627385 (diff)
downloadtk-996aa5aa5d6fca18e46c0f25c7f25589a1d85003.zip
tk-996aa5aa5d6fca18e46c0f25c7f25589a1d85003.tar.gz
tk-996aa5aa5d6fca18e46c0f25c7f25589a1d85003.tar.bz2
* generic/tkCanvPoly.c (PolygonToPostscript):
* tests/canvPs.test: correct crash when generating postscript for a single-line polygon (point) with no color. [Bug #734498] (wilm)
Diffstat (limited to 'tests')
-rw-r--r--tests/canvPs.test22
1 files changed, 8 insertions, 14 deletions
diff --git a/tests/canvPs.test b/tests/canvPs.test
index 8ab93a0..cc0f39b 100644
--- a/tests/canvPs.test
+++ b/tests/canvPs.test
@@ -6,7 +6,7 @@
# Copyright (c) 1998-1999 by Scriptics Corporation.
# All rights reserved.
#
-# RCS: @(#) $Id: canvPs.test,v 1.5 2002/10/10 07:25:24 hobbs Exp $
+# RCS: @(#) $Id: canvPs.test,v 1.5.2.1 2003/05/11 00:57:10 hobbs Exp $
package require tcltest 2.1
namespace import -force tcltest::configure
@@ -124,22 +124,16 @@ test canvPs-3.2 {test ps generation with an embedded window not mapped} {} {
file exists bar.ps
} 1
+test canvPs-4.1 {test ps generation with single-point uncolored poly, bug 734498} {} {
+ destroy .c
+ pack [canvas .c]
+ .c create poly 10 20 10 20
+ catch {.c postscript}
+} 0
+
# cleanup
removeFile foo.ps
removeFile bar.ps
deleteWindows
::tcltest::cleanupTests
return
-
-
-
-
-
-
-
-
-
-
-
-
-