Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pdf/ev-poppler.cc
diff options
context:
space:
mode:
authorMarco 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)
commitd8897e96db8b9c75a30d48c33b41fddf105b8df1 (patch)
tree9672f83974e55062e142dab63653d14d0ec47fe2 /pdf/ev-poppler.cc
parente94bdc00566d05634399db99df6262ff10f7256a (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.
Diffstat (limited to 'pdf/ev-poppler.cc')
-rw-r--r--pdf/ev-poppler.cc11
1 files changed, 5 insertions, 6 deletions
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