]> www.fi.muni.cz Git - evince.git/commitdiff
Enable rotation, require poppler cvs. Fix a leak.
authorMarco Pesenti Gritti <mpg@redhat.com>
Fri, 24 Jun 2005 08:11:00 +0000 (08:11 +0000)
committerMarco Pesenti Gritti <marco@src.gnome.org>
Fri, 24 Jun 2005 08:11:00 +0000 (08:11 +0000)
2005-06-24  Marco Pesenti Gritti  <mpg@redhat.com>

        * pdf/ev-poppler.cc:

        Enable rotation, require poppler cvs. Fix a leak.

ChangeLog
pdf/ev-poppler.cc

index 689ab7bc7782c971f4203f9ad3c8f8fa29882081..04bcd52c9ce6cdd4b5911ef5eb56ba621121301d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-06-24  Marco Pesenti Gritti  <mpg@redhat.com>
+
+       * pdf/ev-poppler.cc:
+
+       Enable rotation, require poppler cvs. Fix a leak.
+
 2005-06-24  Nickolay V. Shmyrev  <nshmyrev@yandex.ru>
 
        * shell/ev-window.c: (update_action_sensitivity):
index 8916ae1860eb2370ef1dbd88364cb3375fdb9aef..e5444f60ce65bea6783059718ed49280e94c7d29 100644 (file)
@@ -179,20 +179,19 @@ pdf_document_save (EvDocument  *document,
 static PopplerOrientation
 get_document_orientation (PdfDocument *pdf_document)
 {
-#ifdef POPPLER_ORIENTATION
+       PopplerOrientation orientation;
        PopplerPage *page;
 
        /* Should prolly be smarter here and check more than first page */
        page = poppler_document_get_page (pdf_document->document, 0);
        if (page) {
-               return poppler_page_get_orientation (page);
+               orientation = poppler_page_get_orientation (page);
        } else {
-               return POPPLER_ORIENTATION_PORTRAIT;
+               orientation = POPPLER_ORIENTATION_PORTRAIT;
        }
        g_object_unref (page);
-#else
-       return POPPLER_ORIENTATION_PORTRAIT;
-#endif
+
+       return orientation;
 }
 
 static gboolean