forked from osmocom/wireshark
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:
parent
19bd423fe9
commit
591ef8ab4a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue