dvdisasm.cpp: move to the position of the cursor only if the cursor is actually visible (nw)

Otherwise it would jump to a seemingly random position in certain cases.
This commit is contained in:
yz70s 2019-08-09 07:59:27 +02:00
parent 49af3714fa
commit e1b078da42

View File

@ -109,7 +109,7 @@ void debug_view_disasm::enumerate_sources()
void debug_view_disasm::view_notify(debug_view_notification type) void debug_view_disasm::view_notify(debug_view_notification type)
{ {
if(type == VIEW_NOTIFY_CURSOR_CHANGED) if((type == VIEW_NOTIFY_CURSOR_CHANGED) && (m_cursor_visible == true))
adjust_visible_y_for_cursor(); adjust_visible_y_for_cursor();
else if(type == VIEW_NOTIFY_SOURCE_CHANGED) else if(type == VIEW_NOTIFY_SOURCE_CHANGED)