summaryrefslogtreecommitdiff
path: root/src/book.c
diff options
context:
space:
mode:
authorAlessio Treglia <alessio@debian.org>2010-08-17 10:58:49 +0200
committerAlessio Treglia <alessio@debian.org>2010-08-17 10:58:49 +0200
commit8e6c8048192d0a864c3c11b6cd3025572b527e8c (patch)
tree3cb3512f92912189824f1ebd78dc1fc7be0ba398 /src/book.c
parentbbf22aaaa2fd5fe725a979f801472d52a1323242 (diff)
Imported Upstream version 2.31.90.2upstream/2.31.90.2
Diffstat (limited to 'src/book.c')
-rw-r--r--src/book.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/book.c b/src/book.c
index 081cbd3..0e33d8b 100644
--- a/src/book.c
+++ b/src/book.c
@@ -439,12 +439,12 @@ book_save_pdf (Book *book, GFile *file, GError **error)
float page_width, page_height;
page = book_get_page (book, i);
- width = page_get_width (page);
- height = page_get_height (page);
- page_width = width * 72. / page_get_dpi (page);
- page_height = height * 72. / page_get_dpi (page);
image = page_get_image (page, TRUE);
+ width = gdk_pixbuf_get_width (image);
+ height = gdk_pixbuf_get_height (image);
pixels = gdk_pixbuf_get_pixels (image);
+ page_width = width * 72. / page_get_dpi (page);
+ page_height = height * 72. / page_get_dpi (page);
if (page_is_color (page)) {
int row;