diff options
author | hobbs <hobbs> | 2003-05-11 00:52:41 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2003-05-11 00:52:41 (GMT) |
commit | 49335abfd1e4246bddd164bd71142661af9d42da (patch) | |
tree | d7b1b2f0d22d1a6effe4300b261b62b8f03ccfe9 /tests/canvPs.test | |
parent | b9210133fb852362ce50e736dce33755ab8eb921 (diff) | |
download | tk-49335abfd1e4246bddd164bd71142661af9d42da.zip tk-49335abfd1e4246bddd164bd71142661af9d42da.tar.gz tk-49335abfd1e4246bddd164bd71142661af9d42da.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/canvPs.test')
-rw-r--r-- | tests/canvPs.test | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/canvPs.test b/tests/canvPs.test index 0b8392c..d065d53 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.6 2003/04/01 21:06:18 dgp Exp $ +# RCS: @(#) $Id: canvPs.test,v 1.7 2003/05/11 00:52:41 hobbs Exp $ package require tcltest 2.1 eval tcltest::configure $argv @@ -118,6 +118,13 @@ 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 |