[gs-cvs] gs/src

Alex Cherepanov alexcher at ghostscript.com
Tue Jun 15 08:28:00 PDT 2004


Update of /cvs/ghostscript/gs/src
In directory casper:/tmp/cvs-serv24009/gs/src

Modified Files:
	gdevpdf.c 
Log Message:
Make pdf_dominant_rotation() return unknown text rotation for the file
without text. It returned 0 rotation before, which excluded consideration
of DSC comments later on.
Fix bug 687515


Index: gdevpdf.c
===================================================================
RCS file: /cvs/ghostscript/gs/src/gdevpdf.c,v
retrieving revision 1.94
retrieving revision 1.95
diff -u -d -r1.94 -r1.95
--- gdevpdf.c	27 May 2004 19:05:36 -0000	1.94
+++ gdevpdf.c	15 Jun 2004 15:27:57 -0000	1.95
@@ -818,7 +818,7 @@
 pdf_dominant_rotation(const pdf_text_rotation_t *ptr)
 {
     int i, imax = -1;
-    long max_count = -1;
+    long max_count = 0;
     static const int angles[] = { pdf_text_rotation_angle_values };
 
     for (i = 0; i < countof(ptr->counts); ++i) {



More information about the gs-cvs mailing list