This commit is contained in:
Kathy Ruffing 2012-03-09 16:10:09 +00:00
parent 42e70515c6
commit aac7de181c

View File

@ -725,7 +725,7 @@ namespace Volian.Controls.Library
else
{
_InitializingTrans = true; // just initializing now, don't set any ranges, etc.
tvTranFillIn(secitm.Steps[0]);
tvTranFillIn((secitm.Steps==null||secitm.Steps.Count==0)?null:secitm.Steps[0]);
tvTran.Enabled = true;
_InitializingTrans = false;
}
@ -773,7 +773,7 @@ namespace Volian.Controls.Library
else
{
_InitializingTrans = true; // just initializing now, don't set any ranges, etc.
tvTranFillIn(secitm.Steps[0]);
tvTranFillIn((secitm.Steps == null || secitm.Steps.Count == 0) ? null : secitm.Steps[0]);
tvTran.Enabled = true;
// if doing a 'new' range, no node is selected in tree. Without this, the first node in the
// tree was the selected node which was throwing off the logic for defining the _RangeNode1