This commit is contained in:
@@ -678,9 +678,16 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
_CurrentProcedure = _CurrentItemProcedure;
|
||||
cbTranProcsFillIn(_CurrentProcedure);
|
||||
ItemInfo tmpitm = _CurItemFrom;
|
||||
ItemInfo secitm = null;
|
||||
while (tmpitm.MyContent.Type != 0) // find current section
|
||||
{
|
||||
if (tmpitm.MyContent.Type >= 10000 && tmpitm.MyContent.Type < 20000) secitm = tmpitm;
|
||||
tmpitm = tmpitm.MyParent;
|
||||
}
|
||||
int sectstartid = FindSectionStart(_CurrentProcedure);
|
||||
IList chldrn = _CurrentProcedure.GetChildren();
|
||||
if (chldrn != null && chldrn.Count > 0) cbTranSectsFillIn((ItemInfo)chldrn[0], sectstartid);
|
||||
if (chldrn != null && chldrn.Count > 0) cbTranSectsFillIn((ItemInfo)chldrn[0], secitm==null?sectstartid:secitm.ItemID); //sectstartid);
|
||||
}
|
||||
_TranFmtIndx = listBoxTranFmt.SelectedIndex;
|
||||
groupPanelTranFmt.Style.BackColor = (_CurTrans == null && _TranFmtIndx == 0) ? Color.Yellow : Color.Orange;
|
||||
|
Reference in New Issue
Block a user