From 146ce8f258af16b608154bc64bb7e41437bb83e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig=20Bj=C3=B8rlykke?= Date: Thu, 5 Nov 2009 10:26:43 +0000 Subject: [PATCH] Restore text_end_1 vs. text_start_2 handling. svn path=/trunk/; revision=30833 --- gtk/main_proto_draw.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/gtk/main_proto_draw.c b/gtk/main_proto_draw.c index eb87200fd1..853ffa6458 100644 --- a/gtk/main_proto_draw.c +++ b/gtk/main_proto_draw.c @@ -358,14 +358,18 @@ hex_view_get_byte(guint ndigits, int row, int column) * The column of the last "text dump" character in the first half. * There are BYTES_PER_LINE/2 bytes displayed in the first * half; there is 1 character per byte. + * + * Then subtract 1 to get the last column of the first half + * rather than the first column after the first half. */ - text_end_1 = text_start_1 + BYTES_PER_LINE/2; + text_end_1 = text_start_1 + BYTES_PER_LINE/2 - 1; /* * The column of the first "text dump" character in the second half. - * Add 1 for the separating blank between the halves. + * Add back the 1 to get the first column after the first half, + * and then add 1 for the separating blank between the halves. */ - text_start_2 = text_end_1 + 1; + text_start_2 = text_end_1 + 2; /* * The column of the last "text dump" character in second half.