| Ticket UUID: | 969636 | |||
| Title: | embedded windows representation offset (horiz.) | |||
| Type: | Bug | Version: | 8.5a2, 8.6.18, 9.0.5, 9.1b1 | |
| Submitter: | rmaris | Created on: | 2004-06-09 14:28:27 | |
| Subsystem: | 06. Canvas Postscript | Assigned To: | aku | |
| Priority: | 5 Medium | Severity: | Minor | |
| Status: | Closed | Last Modified: | 2026-10-16 15:22:11 | |
| Resolution: | Fixed | Closed By: | nemethi | |
| Closed on: | 2026-10-16 15:22:11 | |||
| Description: |
This also applies to version 8.4.6 (windows version)
When a postscript file is generated using embedded
canvas windows, any embedded window having an offset
scrollrange (e.g. {-100, -100, 100 100} will be
represented correctly in the vertical direction, but the
horizontal direction is still displayed from the absolute
zero point.
An example:
pack [canvas .c]
.c create rectangle 1 1 300 300 -fill wheat
canvas .c1 -width 201 -height 201 -bg white \
-highlightthickness 0
.c create window 20 20 -anchor nw -window .c1
.c1 config -scrollregion {-100 -100 100 100}
#axis system
.c1 create line -100 0 100 0
.c1 create line 0 -100 0 100
update
.c postscript -file test.ps
| |||
| User Comments: |
nemethi (claiming to be Csaba Nemethi) added on 2026-10-16 15:22:11:
Merged into main, core-9-0-branch, and core-8-6-branch by commits [25b94d0e] (Jan), [ecf2f97c], and [d480eb32]. serhiy.storchaka added on 2026-09-21 14:45:07: Still present in 8.6 and 9.1. The translate for the -x coordinate of the printed area is output only together with the prolog, while the y coordinate is applied to every item; an embedded canvas is printed with -prolog 0, so its horizontal scroll offset was lost. Fixed on branch canvas-ps-noprolog-xoffset in [7367fb6ae6]. | |||
Home
Timeline
Branches
Tags
Forum
Tickets
Download
Wiki