gnucash maint: Bug 693342 - Print (bottom) prints to middle for 3-check pages
Geert Janssens
gjanssens at code.gnucash.org
Thu Mar 24 10:30:42 EDT 2016
Updated via https://github.com/Gnucash/gnucash/commit/cde9d784 (commit)
from https://github.com/Gnucash/gnucash/commit/f168cb2e (commit)
commit cde9d7846583321d73f65e515aaaad75797650b9
Author: Geert Janssens <janssens-geert at telenet.be>
Date: Thu Mar 24 19:22:10 2016 +0100
Bug 693342 - Print (bottom) prints to middle for 3-check pages
diff --git a/src/gnome/dialog-print-check.c b/src/gnome/dialog-print-check.c
index 3ee4f0f..ed3fd18 100644
--- a/src/gnome/dialog-print-check.c
+++ b/src/gnome/dialog-print-check.c
@@ -2256,8 +2256,8 @@ draw_check_format(GtkPrintContext *context, gint position,
/* Standard positioning is used.
* Note that the first check on the page (position 0) doesn't
* need to be moved (hence the test for position > 0 above. */
- cairo_translate(cr, 0, format->height);
- g_debug("Position %d translated by %f (pre-defined)", position, format->height);
+ cairo_translate(cr, 0, position * format->height);
+ g_debug("Position %d translated by %f (pre-defined)", position, position * format->height);
}
else if (position == pcd->position_max)
{
Summary of changes:
src/gnome/dialog-print-check.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
More information about the gnucash-changes
mailing list