[poppler] poppler/glib: poppler-page.cc,1.34,1.35

Kristian Høgsberg krh at freedesktop.org
Sat Sep 3 00:47:26 EST 2005


Update of /cvs/poppler/poppler/glib
In directory gabe:/tmp/cvs-serv16535/glib

Modified Files:
	poppler-page.cc 
Log Message:
2005-09-02  Kristian Høgsberg  <krh at redhat.com>

        * glib/poppler-page.cc: Apply Marcos rotation fix.



Index: poppler-page.cc
===================================================================
RCS file: /cvs/poppler/poppler/glib/poppler-page.cc,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- poppler-page.cc	24 Aug 2005 18:57:46 -0000	1.34
+++ poppler-page.cc	2 Sep 2005 14:47:24 -0000	1.35
@@ -123,9 +123,12 @@
   CairoOutputDev *output_dev;
   cairo_surface_t *surface;
   int cairo_width, cairo_height, cairo_rowstride;
+  int rotate;
   unsigned char *cairo_data;
 
-  if (rotation == 90 || rotation == 270) {
+  rotate = (rotation + page->page->getRotate()) % 360;
+
+  if (rotate == 90 || rotate == 270) {
     cairo_width = MAX ((int)(page->page->getHeight() * scale + 0.5), 1);
     cairo_height = MAX ((int)(page->page->getWidth() * scale + 0.5), 1);
   } else {



More information about the poppler mailing list