diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/menus/edition.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/menus/edition.c b/src/gui/menus/edition.c index d3381bf..2cfcf85 100644 --- a/src/gui/menus/edition.c +++ b/src/gui/menus/edition.c @@ -44,6 +44,7 @@ #include "../../gtkext/gtkblockdisplay.h" #include "../../gtkext/gtkdisplaypanel.h" #include "../../gtkext/gtkgraphdisplay.h" +#include "../../gtkext/hexdisplay.h" @@ -353,7 +354,7 @@ void update_access_for_cursor_in_menu_edition(GLoadedPanel *panel, const GLineCu if (G_IS_BINARY_CURSOR(cursor)) { - assert(GTK_IS_BLOCK_DISPLAY(panel) || GTK_IS_GRAPH_DISPLAY(panel)); + assert(GTK_IS_HEX_DISPLAY(panel) || GTK_IS_BLOCK_DISPLAY(panel) || GTK_IS_GRAPH_DISPLAY(panel)); if (g_line_cursor_is_valid(cursor)) creator = gtk_display_panel_get_active_object(GTK_DISPLAY_PANEL(panel)); @@ -433,7 +434,7 @@ static void mcb_edition_goto(GtkMenuItem *menuitem, GMenuBar *bar) addr = get_address_from_goto_dialog(dialog); panel = get_current_view(); - assert(GTK_IS_BLOCK_DISPLAY(panel) || GTK_IS_GRAPH_DISPLAY(panel)); + assert(GTK_IS_HEX_DISPLAY(panel) || GTK_IS_BLOCK_DISPLAY(panel) || GTK_IS_GRAPH_DISPLAY(panel)); binary = G_LOADED_BINARY(g_loaded_panel_get_content(panel)); g_loaded_binary_remember_new_goto(binary, addr); |