diff options
author | Alessio Treglia <alessio@debian.org> | 2010-10-26 17:12:57 +0200 |
---|---|---|
committer | Alessio Treglia <alessio@debian.org> | 2010-10-26 17:12:57 +0200 |
commit | 4464130722661bc4c06da3ac447f16f3171711b2 (patch) | |
tree | 1e0d470ab19bb9e47c535c63618015dd1a6bb3a0 /src/page.c | |
parent | 24e91aad73752189398ad589362a12408ff3bdbc (diff) | |
parent | fafc0daa6bd26ad254943315f253b1b218e71080 (diff) |
Merge commit 'upstream/2.32.0.1'
Diffstat (limited to 'src/page.c')
-rw-r--r-- | src/page.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -651,18 +651,18 @@ get_pixel (Page *page, gint x, gint y, guchar *pixel) case TOP_TO_BOTTOM: break; case BOTTOM_TO_TOP: - x = page_get_scan_width (page) - x; - y = page_get_scan_height (page) - y; + x = page_get_scan_width (page) - x - 1; + y = page_get_scan_height (page) - y - 1; break; case LEFT_TO_RIGHT: t = x; - x = page_get_scan_width (page) - y; + x = page_get_scan_width (page) - y - 1; y = t; break; case RIGHT_TO_LEFT: t = x; x = y; - y = page_get_scan_height (page) - t; + y = page_get_scan_height (page) - t - 1; break; } @@ -721,7 +721,7 @@ page_get_image (Page *page, gboolean apply_crop) l = page->priv->crop_x; r = l + page->priv->crop_width; t = page->priv->crop_y; - b = l + page->priv->crop_height; + b = t + page->priv->crop_height; if (l < 0) l = 0; |