Correzioni

This commit is contained in:
Annamaria Sassi
2026-04-16 17:53:16 +02:00
parent 8f56f2e2a6
commit f2ad83fd09
6 changed files with 56 additions and 11 deletions
+7 -4
View File
@@ -271,7 +271,7 @@ namespace WebWindowComplex.Models
AreaList.Add(Splitted.CreateSplitted(this));
}
// Riaggiungo i sottoalberi che avevo salvato
for (int i = 0; i < AreaList.Count - 1; i++)
for (int i = 0; i <= ContentArea.Count - 1; i++)
{
if (AreaList.Count == 2)
{
@@ -280,9 +280,12 @@ namespace WebWindowComplex.Models
AreaList[i].AreaList.Add(ContentArea[i]);
}
// Aggiungo all'ultimo Splitted l'area di vetro
Fill newFill = Fill.CreateFill(AreaList[1], FillTypes.GLASS);
newFill.SetAreaType(AreaTypes.FILL);
AreaList[AreaList.Count - 1].AreaList.Add(newFill);
for(int k = ContentArea.Count; k <= AreaList.Count - 1; k++)
{
Fill newFill = Fill.CreateFill(AreaList[k], FillTypes.GLASS);
newFill.SetAreaType(AreaTypes.FILL);
AreaList[k].AreaList.Add(newFill);
}
}
// Se tolgo anta
else