Hex Editor - when switching to a domain where highlighted addresses are out of range, clear the highlighted addresses, fixes #710
This commit is contained in:
parent
4c919c95c0
commit
15c1fafa48
|
@ -617,6 +617,13 @@ namespace BizHawk.Client.EmuHawk
|
||||||
AddressesLabel.ForeColor = SystemColors.ControlDarkDark;
|
AddressesLabel.ForeColor = SystemColors.ControlDarkDark;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (HighlightedAddress >= _domain.Size
|
||||||
|
|| (_secondaryHighlightedAddresses.Any() && _secondaryHighlightedAddresses.Max() >= _domain.Size))
|
||||||
|
{
|
||||||
|
_addressHighlighted = -1;
|
||||||
|
_secondaryHighlightedAddresses.Clear();
|
||||||
|
}
|
||||||
|
|
||||||
UpdateGroupBoxTitle();
|
UpdateGroupBoxTitle();
|
||||||
SetHeader();
|
SetHeader();
|
||||||
UpdateValues();
|
UpdateValues();
|
||||||
|
|
Loading…
Reference in New Issue