diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2005-06-24 08:11:00 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@src.gnome.org> | 2005-06-24 08:11:00 (GMT) |
commit | d8897e96db8b9c75a30d48c33b41fddf105b8df1 (patch) | |
tree | 9672f83974e55062e142dab63653d14d0ec47fe2 | |
parent | e94bdc00566d05634399db99df6262ff10f7256a (diff) |
Enable rotation, require poppler cvs. Fix a leak.
2005-06-24 Marco Pesenti Gritti <mpg@redhat.com>
* pdf/ev-poppler.cc:
Enable rotation, require poppler cvs. Fix a leak.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | pdf/ev-poppler.cc | 11 |
2 files changed, 11 insertions, 6 deletions
@@ -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): diff --git a/pdf/ev-poppler.cc b/pdf/ev-poppler.cc index 8916ae1..e5444f6 100644 --- a/pdf/ev-poppler.cc +++ b/pdf/ev-poppler.cc @@ -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 |