Highlight correct number of bytes when highlighted hex dump ends at the end

of the first block.

svn path=/trunk/; revision=33283
This commit is contained in:
Stig Bjørlykke 2010-06-22 08:49:12 +00:00
parent 19bd423fe9
commit 591ef8ab4a
1 changed files with 2 additions and 2 deletions

View File

@ -1158,12 +1158,12 @@ packet_hex_apply_reverse_tag(GtkTextBuffer *buf, int bstart, int bend, guint32 m
/* bits/hex */
gtk_text_buffer_get_iter_at_line_index(buf, &i_start, start_line, hex_fix(start_line_pos));
gtk_text_buffer_get_iter_at_line_index(buf, &i_stop, start_line, hex_fix(line_pos_end)-1);
gtk_text_buffer_get_iter_at_line_index(buf, &i_stop, start_line, hex_fix(line_pos_end)-1-(line_pos_end == per_line/2));
gtk_text_buffer_apply_tag(buf, revstyle_tag, &i_start, &i_stop);
/* ascii */
gtk_text_buffer_get_iter_at_line_index(buf, &i_start, start_line, ascii_fix(start_line_pos));
gtk_text_buffer_get_iter_at_line_index(buf, &i_stop, start_line, ascii_fix(line_pos_end));
gtk_text_buffer_get_iter_at_line_index(buf, &i_stop, start_line, ascii_fix(line_pos_end)-(line_pos_end == per_line/2));
gtk_text_buffer_apply_tag(buf, revstyle_tag, &i_start, &i_stop);
start_line_pos = 0;