diff options
author | hobbs <hobbs@noemail.net> | 2003-05-11 00:52:40 (GMT) |
---|---|---|
committer | hobbs <hobbs@noemail.net> | 2003-05-11 00:52:40 (GMT) |
commit | b8763f99dc5417a7d733bb6cb9ca139b8704bece (patch) | |
tree | d7b1b2f0d22d1a6effe4300b261b62b8f03ccfe9 /tests/canvPs.test | |
parent | 70d0bc1475318f208f5e4537bf727f2f1c4b33ba (diff) | |
download | tk-b8763f99dc5417a7d733bb6cb9ca139b8704bece.zip tk-b8763f99dc5417a7d733bb6cb9ca139b8704bece.tar.gz tk-b8763f99dc5417a7d733bb6cb9ca139b8704bece.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)
FossilOrigin-Name: da0424bd6c23fd9034cd30cbfed4dd5d8cf1990b
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 |