From 8ec8f6b8787dad6b627d8d1b2134d8092f9303c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig=20Bj=C3=B8rlykke?= Date: Mon, 13 Jun 2016 10:00:28 +0200 Subject: Qt: Multi line import from hex dump without offsets MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix importing hex dump without offsets with multiple lines. Change-Id: I7a7339e375b3125688f5b5d29f493704c7b9944a Reviewed-on: https://code.wireshark.org/review/15868 Reviewed-by: Stig Bjørlykke --- ui/text_import.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ui/text_import.c') diff --git a/ui/text_import.c b/ui/text_import.c index 67a8b33980..93db8a2f93 100644 --- a/ui/text_import.c +++ b/ui/text_import.c @@ -840,6 +840,12 @@ parse_token (token_t token, char *str) } else state = READ_OFFSET; break; + case T_BYTE: + if (offset_base == 0) { + write_byte(str); + state = READ_BYTE; + } + break; default: break; } -- cgit v1.2.1