Correzione gestione joint sash
This commit is contained in:
@@ -185,15 +185,13 @@ namespace WebWindowComplex.Models
|
||||
if(frame != null)
|
||||
{
|
||||
// Aggiorno joint di tutte le ante
|
||||
if(AreaList.FirstOrDefault()!.AreaList.FirstOrDefault().AreaList.FirstOrDefault() is Sash)
|
||||
if(AreaList.FirstOrDefault()!.AreaList.FirstOrDefault()!.AreaList.FirstOrDefault() is Sash sash && sash != null)
|
||||
{
|
||||
Sash sash = (Sash)AreaList.FirstOrDefault()!.AreaList.FirstOrDefault().AreaList.FirstOrDefault();
|
||||
foreach(var anta in sash.SashList)
|
||||
{
|
||||
foreach (var j in anta.JointList)
|
||||
j.SelJointType = anta.JointList.FirstOrDefault().SelJointType;
|
||||
}
|
||||
|
||||
}
|
||||
// Aggiorno altezza sotto aree
|
||||
frame.SearchAreaList(frame, frame.AvailHeightArea(), "Height");
|
||||
|
||||
Reference in New Issue
Block a user