Tk Source Code

View Ticket
Login
Ticket UUID: 229358
Title: Clipping error in postscript output
Type: Bug Version: obsolete: 8.4a2
Submitter: pgbaum Created on: 2001-01-19 08:07:55
Subsystem: 06. Canvas Postscript Assigned To: nobody
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2002-10-10 13:06:45
Resolution: Duplicate Closed By: hobbs
    Closed on: 2002-10-10 06:06:45
Description:
Items in a canvas, which is embedded in another canvas, are
clipped by the inner canvas. This clipping is not done in
postscript output of the outer canvas.

tk-version: I tested it with 8.4a2 and 8.0 (diff is against 8.4a2)

reproducible script:
canvas .outer -bg red -width 120 -height 120
pack .outer
canvas .inner -bg white -width 100 -height 100
.outer create window 10 10 -anchor nw -window .inner
.inner create oval -5 -5 105 105 -fill blue
update
.outer postscript -file qqq.ps

result:
in the postscript file the oval is an oval.

desired result:
The oval should have (due to the clipping) corners as
in the screen view.
Second: outer is not drawn in red in the ps-file. I have 
not yet a patch for this.
User Comments: hobbs added on 2002-10-10 13:06:45:
Logged In: YES 
user_id=72656

dup'ed by Tk patch 403328

pgbaum added on 2001-01-19 17:02:38:
They don't include postscript as contents, but
they write their contents as postscript. But
as their postscript output should look like
their screen output, clipping should be the same.

dkf added on 2001-01-19 16:44:11:
I didn't even know that canvases could include postscript for their contents, however since they obviously do, it is clear that the clipping should be applied.

pgbaum added on 2001-01-19 15:14:49:
Patch is #103328