This commit is contained in:
2010-11-16 20:23:39 +00:00
parent 17b12540c0
commit 74082c3038

View File

@@ -1390,6 +1390,10 @@ namespace Volian.Controls.Library
}
public StepItem PasteReplace(int copyStartID)
{
// To allow a Paste Step into an empty (new) step/substep, we need to add a character to the the Text field
// to simulate replacing an existing step - otherwise we will get null references.
if (MyStepPanel.SelectedStepRTB.Text == "")
MyStepPanel.SelectedStepRTB.Text = " ";
MyStepPanel.SelectedStepRTB = null; // Unselect the item to be deleted
ChildRelation childRelation = _MyChildRelation;
StepItem newFocus = null;