Fixed B2014-087: save new text before saving change id config data

This commit is contained in:
Kathy Ruffing 2014-12-09 14:28:42 +00:00
parent 4e2cf93fc6
commit c73453cca0
2 changed files with 2 additions and 1 deletions

View File

@ -484,6 +484,7 @@ namespace Volian.Controls.Library
private void tbChgID_TextChanged(object sender, EventArgs e) private void tbChgID_TextChanged(object sender, EventArgs e)
{ {
MyEditItem.SaveContents();
StepConfig sc = CurItemInfo.MyConfig as StepConfig; StepConfig sc = CurItemInfo.MyConfig as StepConfig;
sc.Step_ChangeID = tbChgID.Text; sc.Step_ChangeID = tbChgID.Text;
} }

View File

@ -1428,7 +1428,7 @@ namespace Volian.Controls.Library
{ {
rtabInsert.Select(); rtabInsert.Select();
if (MyItemInfo.IsProcedure || MyItemInfo.IsSection) return; if (MyItemInfo.IsProcedure || MyItemInfo.IsSection) return;
MyEditItem.SaveContents();
// toggle manual page break // toggle manual page break
StepConfig cfg = MyItemInfo.MyConfig as StepConfig; StepConfig cfg = MyItemInfo.MyConfig as StepConfig;
cfg.Step_NewManualPagebreak = !cfg.Step_NewManualPagebreak; cfg.Step_NewManualPagebreak = !cfg.Step_NewManualPagebreak;