You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.3 KiB
48 lines
1.3 KiB
7 years ago
|
Source: http://pkgs.fedoraproject.org/cgit/rpms/poster.git/plain/poster.fixes_gs_crash.patch
|
||
|
See also https://bugs.gentoo.org/show_bug.cgi?id=471238
|
||
|
|
||
|
--- a/poster.c 2006-02-22 13:27:39.000000000 +0100
|
||
|
+++ b/poster.c 2012-11-17 01:30:45.303051611 +0100
|
||
|
@@ -856,21 +856,13 @@
|
||
|
int row, col, page;
|
||
|
|
||
|
printprolog();
|
||
|
- for ( page = 0; page < number_pages; page++ )
|
||
|
- {
|
||
|
- printf( "/print_content_of_complete_page_%d\n", page);
|
||
|
- printf( "{\n");
|
||
|
- printfile (page);
|
||
|
- printf( "} bind def\n\n");
|
||
|
-
|
||
|
if ( pages == NULL )
|
||
|
- {
|
||
|
+ for ( page = 0; page < number_pages; page++ )
|
||
|
for (row = 1; row <= nrows; row++)
|
||
|
for (col = 1; col <= ncols; col++)
|
||
|
tile( row, col, page);
|
||
|
- }
|
||
|
else
|
||
|
- {
|
||
|
+ for ( page = 0; page < number_pages; page++ )
|
||
|
for ( row = 0; row < pages_length; row++ )
|
||
|
{
|
||
|
int p = pages[ row ]-1;
|
||
|
@@ -878,8 +870,6 @@
|
||
|
fprintf( stderr, "Warning: page index out of range: %d\n", p+1 );
|
||
|
tile( p/ncols+1, p%ncols+1, page );
|
||
|
}
|
||
|
- }
|
||
|
- }
|
||
|
printf ("%%%%EOF\n");
|
||
|
|
||
|
if (tail_cntl_D)
|
||
|
@@ -1027,7 +1017,7 @@
|
||
|
printf ("\n%%%%Page: (%d,%d) %d\n", pagetoprint+1, ((row-1)*ncols+col), page);
|
||
|
printf ("%d %d tileprolog\n", row, col);
|
||
|
printf ("%%%%BeginDocument: %s\n", infile);
|
||
|
- printf( "print_content_of_complete_page_%d\n", pagetoprint);
|
||
|
+ printfile (pagetoprint);
|
||
|
printf ("%%%%EndDocument\n");
|
||
|
printf ("tileepilog\n");
|
||
|
|