Debugger: Memory Tools - Fixed edit label action changing the start address on multi-byte labels
This commit is contained in:
parent
73ef5f21e9
commit
f5c7bf4358
1 changed files with 7 additions and 1 deletions
|
@ -55,7 +55,13 @@ namespace Mesen.GUI.Debugger.Controls
|
|||
public static void EditLabel(UInt32 address, AddressType type)
|
||||
{
|
||||
CodeLabel existingLabel = LabelManager.GetLabel(address, type);
|
||||
CodeLabel newLabel = new CodeLabel() { Address = address, AddressType = type, Label = existingLabel?.Label, Comment = existingLabel?.Comment, Length = existingLabel?.Length ?? 1 };
|
||||
CodeLabel newLabel = new CodeLabel() {
|
||||
Address = existingLabel?.Address ?? address,
|
||||
AddressType = existingLabel?.AddressType ?? type,
|
||||
Label = existingLabel?.Label,
|
||||
Comment = existingLabel?.Comment,
|
||||
Length = existingLabel?.Length ?? 1
|
||||
};
|
||||
|
||||
frmEditLabel frm = new frmEditLabel(newLabel, existingLabel);
|
||||
if(frm.ShowDialog() == DialogResult.OK) {
|
||||
|
|
Loading…
Add table
Reference in a new issue