Keep special characters for Enhanced Document Text
This commit is contained in:
@@ -933,20 +933,21 @@ namespace Volian.Controls.Library
|
||||
SelectDisplayTabItem(pg);
|
||||
|
||||
// If this is an enhanced document, check for refresh of text items:
|
||||
if (myItemInfo.IsProcedure)
|
||||
{
|
||||
//if (myItemInfo.IsProcedure)
|
||||
//{
|
||||
// make the myiteminfo into a procedureinfo (depending on where this is called from, just
|
||||
// casting it crashed:
|
||||
ProcedureInfo pi = ProcedureInfo.Get(myItemInfo.ItemID);
|
||||
ProcedureInfo pi = ProcedureInfo.Get(myItemInfo.MyProcedure.ItemID);
|
||||
ItemInfoList iil = pi.FindEnhancedProcedureTextDifferences();
|
||||
if (iil != null)
|
||||
{
|
||||
if (MessageBox.Show(this, "Text differences were found between this enhanced procedure and its source procedure. Do you want to refresh the text in this procedure?", "Confirm Text Refresh", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question) == DialogResult.Yes)
|
||||
{
|
||||
|
||||
pi.EnhancedProcedureRefreshTextDifferences(iil);
|
||||
}
|
||||
}
|
||||
}
|
||||
//}
|
||||
}
|
||||
pg.MyStepTabPanel.MyProcedureItemInfo = proc;
|
||||
|
||||
|
Reference in New Issue
Block a user