From 2e3f337e844b15b858aae1459db34804bde0d339 Mon Sep 17 00:00:00 2001 From: Stephen Collins Date: Fri, 3 May 2019 09:19:49 -0600 Subject: [PATCH] print preview: fix layout drawing for 1X2 and 2X1 layouts (#291) The indices were backwards, which was causing incorrect layout, and scrolling issues at larger zoom levels. --- xed/xed-print-preview.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xed/xed-print-preview.c b/xed/xed-print-preview.c index bd9ab85..0b25f4a 100644 --- a/xed/xed-print-preview.c +++ b/xed/xed-print-preview.c @@ -1124,7 +1124,7 @@ preview_draw (GtkWidget *widget, break; } - draw_page (cr, j * priv->tile_w, i * priv->tile_h, pg, preview); + draw_page (cr, i * priv->tile_w, j * priv->tile_h, pg, preview); ++pg; }