Commit 1b2ed6af authored by Jon K Hellan's avatar Jon K Hellan Committed by Jon Kåre Hellan

Fix bug: We must use gnome-print coordinate system when clipping to page

2000-12-18  Jon K Hellan  <hellan@acm.org>

	* src/print.c (print_page): Fix bug: We must use gnome-print
	coordinate system when clipping to page limit. Also take into
	account that Postscript/gnome-print clip paths exclude the pixels
	on the path.
parent 4b000671
2000-12-18 Jon K Hellan <hellan@acm.org>
* src/print.c (print_page): Fix bug: We must use gnome-print
coordinate system when clipping to page limit. Also take into
account that Postscript/gnome-print clip paths exclude the pixels
on the path.
2000-12-18 Almer S. Tigelaar <almer1@dds.nl>
* configure.in : Fix typo in gb check.
......
2000-12-18 Jon K Hellan <hellan@acm.org>
* src/print.c (print_page): Fix bug: We must use gnome-print
coordinate system when clipping to page limit. Also take into
account that Postscript/gnome-print clip paths exclude the pixels
on the path.
2000-12-18 Almer S. Tigelaar <almer1@dds.nl>
* configure.in : Fix typo in gb check.
......
2000-12-18 Jon K Hellan <hellan@acm.org>
* src/print.c (print_page): Fix bug: We must use gnome-print
coordinate system when clipping to page limit. Also take into
account that Postscript/gnome-print clip paths exclude the pixels
on the path.
2000-12-18 Almer S. Tigelaar <almer1@dds.nl>
* configure.in : Fix typo in gb check.
......
2000-12-18 Jon K Hellan <hellan@acm.org>
* src/print.c (print_page): Fix bug: We must use gnome-print
coordinate system when clipping to page limit. Also take into
account that Postscript/gnome-print clip paths exclude the pixels
on the path.
2000-12-18 Almer S. Tigelaar <almer1@dds.nl>
* configure.in : Fix typo in gb check.
......
2000-12-18 Jon K Hellan <hellan@acm.org>
* src/print.c (print_page): Fix bug: We must use gnome-print
coordinate system when clipping to page limit. Also take into
account that Postscript/gnome-print clip paths exclude the pixels
on the path.
2000-12-18 Almer S. Tigelaar <almer1@dds.nl>
* configure.in : Fix typo in gb check.
......
......@@ -500,6 +500,7 @@ print_page (Sheet *sheet, int start_col, int start_row, int end_col, int end_row
for (i = 0; i < pj->n_copies; i++){
double x = base_x;
double y = base_y;
double clip_y;
char *pagenotxt;
/* Note: we cannot have spaces in page numbers. */
......@@ -526,9 +527,13 @@ print_page (Sheet *sheet, int start_col, int start_row, int end_col, int end_row
}
/* Clip the page */
/* Gnome-print coordinates are lower left based,
* like Postscript */
clip_y = 1 + pj->height - y;
print_make_rectangle_path (
pj->print_context,
x, y, x + pj->x_points, y + pj->y_points);
x - 1, clip_y,
x + pj->x_points + 1, clip_y - pj->y_points - 2);
gnome_print_clip (pj->print_context);
/* Start a new path because the background fill function does not */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment