[Gnome-print] [PATCH] return ability to print multipaged documents into .ps



 Hi, 

 Without this patch no program will be able to produce correct .ps files with
more than 1 page (at least if "print to file" is selected in print dialog -
i.e. I didn't test with real 'lp').

 The patch is against 0.27.

 Best regards,
  -Vlad
--- gnome-print-ps2.c~	Wed Mar 14 17:02:31 2001
+++ gnome-print-ps2.c	Sat Mar 17 17:26:44 2001
@@ -482,11 +482,11 @@
 	GPPS2Page *p;
 	gint number;
 
 	ps2 = GNOME_PRINT_PS2 (pc);
 
-	g_return_val_if_fail (!ps2->pages || !ps2->pages->shown, GNOME_PRINT_ERROR_UNKNOWN);
+	g_return_val_if_fail (!ps2->pages || ps2->pages->shown, GNOME_PRINT_ERROR_UNKNOWN);
 
 	number = ps2->pages ? ps2->pages->number : 0;
 
 	p = g_new (GPPS2Page, 1);
 	p->next = ps2->pages;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]