From fd8421351331f5d9b676e054af22f573402033a2 Mon Sep 17 00:00:00 2001
From: Cyrille Bagard <nocbos@gmail.com>
Date: Mon, 4 Apr 2016 21:08:31 +0200
Subject: Removed some separation lines in the display.

---
 ChangeLog                    |  5 +++++
 src/analysis/disass/output.c | 17 +++++++----------
 2 files changed, 12 insertions(+), 10 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 51a73bf..bdc5d43 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 16-04-04  Cyrille Bagard <nocbos@gmail.com>
 
+	* src/analysis/disass/output.c:
+	Remove some separation lines in the display.
+
+16-04-04  Cyrille Bagard <nocbos@gmail.com>
+
 	* src/analysis/disass/disassembler.c:
 	Update code.
 
diff --git a/src/analysis/disass/output.c b/src/analysis/disass/output.c
index b2bfce7..d8097cf 100644
--- a/src/analysis/disass/output.c
+++ b/src/analysis/disass/output.c
@@ -211,22 +211,19 @@ void print_disassembled_instructions(GCodeBuffer *buffer, GExeFormat *format, GA
 
             if (compared == 0)
             {
-                /* Ligne de séparation */
-
-                init_mrange(&range, get_mrange_addr(g_binary_symbol_get_range(symbols[sym_index])), 0);
-
-                line = g_code_buffer_prepare_new_line(buffer, &range);
-                g_buffer_line_add_flag(line, BLF_IS_LABEL);
-                g_buffer_line_fill_mrange(line, msize, msize);
-
-                g_code_buffer_append_new_line(buffer, line);
-
                 /* Coupure pour une nouvelle routine */
 
                 stype = g_binary_symbol_get_target_type(symbols[sym_index]);
 
                 if (stype == STP_ROUTINE || stype == STP_FUNCTION || stype == STP_ENTRY_POINT)
                 {
+                    init_mrange(&range, get_mrange_addr(g_binary_symbol_get_range(symbols[sym_index])), 0);
+
+                    line = g_code_buffer_prepare_new_line(buffer, &range);
+                    g_buffer_line_add_flag(line, BLF_IS_LABEL);
+                    g_buffer_line_fill_mrange(line, msize, msize);
+
+                    g_code_buffer_append_new_line(buffer, line);
 
                     line = g_code_buffer_prepare_new_line(buffer, &range);
                     g_buffer_line_add_flag(line, BLF_IS_LABEL);
-- 
cgit v0.11.2-87-g4458