This commit is contained in:
Kathy Ruffing 2012-10-30 14:28:01 +00:00
parent 62334a105d
commit 8b9c2c20d9

View File

@ -339,7 +339,7 @@ namespace Volian.Controls.Library
tmp = new TreeNode(chld[i].title.Replace(@"\u160?"," "));
tmp.Tag = chld[i];
if (chld[i].roid.Length == 16)
tn.Nodes.Add(tmp.Text);
tn.Nodes.Add(tmp);
else
{
int index = FindIndex(tn.Nodes, tmp.Text);
@ -489,11 +489,14 @@ namespace Volian.Controls.Library
tnExpand.Expand();
foreach (TreeNode tn in tnExpand.Nodes)
{
ROFSTLookup.rochild chld = (ROFSTLookup.rochild)tn.Tag;
if (chld.roid == roid)
if (tn.Tag != null)
{
tnExpand = tn;
break;
ROFSTLookup.rochild chld = (ROFSTLookup.rochild)tn.Tag;
if (chld.roid.ToUpper() == roid.ToUpper())
{
tnExpand = tn;
break;
}
}
}
}