B2016-130: Copy and paste replace steps causing missing and duplicate items in tree (problems with ‘NextItems’)
This commit is contained in:
@@ -513,7 +513,7 @@ namespace Volian.Controls.Library
|
||||
tvTran.SelectedNode = tvTran.Nodes[active];
|
||||
setsel = true;
|
||||
}
|
||||
startitm = (startitm.NextItem != null && startitm.NextItems.Count > 0 ? startitm.NextItems[0] : null);
|
||||
startitm = startitm.GetNext();
|
||||
}
|
||||
if (!setsel) tvTran.SelectedNode = tvTran.Nodes[0];
|
||||
tvTran.BeforeExpand += new TreeViewCancelEventHandler(tvTran_BeforeExpand);
|
||||
@@ -544,7 +544,7 @@ namespace Volian.Controls.Library
|
||||
if (secitm.ItemID == secstart) cbTranSects.SelectedIndex = active;
|
||||
}
|
||||
if (secitm.Sections != null && secitm.Sections.Count > 0) cbTranSectsFillIn(secitm.Sections[0], secstart, false);
|
||||
secitm = (secitm.NextItem != null && secitm.NextItems.Count > 0 ? secitm.NextItems[0] : null);
|
||||
secitm = secitm.GetNext();
|
||||
}
|
||||
if (cbTranSects.SelectedIndex == -1) cbTranSects.SelectedIndex = 0;
|
||||
cbTranSects.Refresh();
|
||||
@@ -562,7 +562,7 @@ namespace Volian.Controls.Library
|
||||
int active = cbTranProcs.Items.Add(prcitm);
|
||||
if (_CurrentProcedure.ContentID == prcitm.MyContent.ContentID) _CurrentProcIndex = active;
|
||||
if (prcitm.MyContent.ContentID == selitm.MyContent.ContentID) cbTranProcs.SelectedIndex = active;
|
||||
prcitm = (prcitm.NextItem != null && prcitm.NextItems.Count > 0 ? prcitm.NextItems[0] : null);
|
||||
prcitm = prcitm.GetNext();
|
||||
}
|
||||
}
|
||||
private void SetControlsEnabling()
|
||||
|
Reference in New Issue
Block a user