flush the current data in the hexedit control before we save
This commit is contained in:
parent
d672782428
commit
107cde359c
@ -46,6 +46,17 @@ namespace UniversalEditor.Editors.Binary
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
protected override void OnObjectModelSaving(System.ComponentModel.CancelEventArgs e)
|
||||
{
|
||||
base.OnObjectModelSaving(e);
|
||||
|
||||
// flush the current data
|
||||
BinaryObjectModel bom = (ObjectModel as BinaryObjectModel);
|
||||
if (bom == null) return;
|
||||
|
||||
bom.Data = hexedit.Data;
|
||||
}
|
||||
|
||||
private static EditorReference _er = null;
|
||||
public override EditorReference MakeReference()
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user