B2017-101: Supplemental Information Steps: Don’t allow insert before & after.

This commit is contained in:
Kathy Ruffing 2017-05-26 12:30:13 +00:00
parent 2388bc87a4
commit d972d277bc

View File

@ -1586,6 +1586,11 @@ namespace Volian.Controls.Library
btnPasteReplace.Enabled = btnCMPasteReplace.Enabled = false; // don't replace itself
return;
}
if (MyItemInfo.IsSupInfoPart) // before and after are always false:
{
btnPasteAfter.Enabled = btnCMPasteAfter.Enabled = false;
btnPasteBefore.Enabled = btnCMPasteBefore.Enabled = false;
}
// for now (Jan 2016 - initial implementation of enhanced document support) do NOT paste any step (MyCopyStep) that has enhanced data associated
// with it unless pasting within a enhanced source document. The reason is that code would need to handle clearing the pasted enhanced config
// data if it is pasted into a non-enhanced location.