Correzioni
This commit is contained in:
@@ -233,7 +233,10 @@ namespace WebWindowComplex.Models
|
||||
else
|
||||
{
|
||||
int deleteSubArea = ElemDimHorizList.Count + 1;
|
||||
ElemDimHorizList.RemoveAt(ElemDimHorizList.Count - 1);
|
||||
for (var SplitIndex = ElemDimHorizList.Count - 1; SplitIndex >= value; SplitIndex += -1)
|
||||
{
|
||||
ElemDimHorizList.RemoveAt(ElemDimHorizList.Count - 1);
|
||||
}
|
||||
if (nSplitQtyVert > 0)
|
||||
ElemDimVertList.RemoveAll(x => x.nSubArea == deleteSubArea);
|
||||
}
|
||||
@@ -366,7 +369,10 @@ namespace WebWindowComplex.Models
|
||||
if (bSplitStartVert)
|
||||
{
|
||||
int deleteSubArea = ElemDimVertList.Count + 1;
|
||||
ElemDimVertList.RemoveAt(ElemDimVertList.Count - 1);
|
||||
for(var SplitIndex = ElemDimVertList.Count - 1; SplitIndex >= value; SplitIndex += -1)
|
||||
{
|
||||
ElemDimVertList.RemoveAt(ElemDimVertList.Count - 1);
|
||||
}
|
||||
if (nSplitQtyHoriz > 0)
|
||||
ElemDimHorizList.RemoveAll(x => x.nSubArea == deleteSubArea);
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -206,7 +206,10 @@ namespace WebWindowComplex.Models
|
||||
else
|
||||
{
|
||||
int deleteSubArea = ElemDimHorizList.Count + 1;
|
||||
ElemDimHorizList.RemoveAt(ElemDimHorizList.Count - 1);
|
||||
for (var SplitIndex = ElemDimHorizList.Count - 1; SplitIndex >= value; SplitIndex += -1)
|
||||
{
|
||||
ElemDimHorizList.RemoveAt(ElemDimHorizList.Count - 1);
|
||||
}
|
||||
if(nSplitQtyVert > 0)
|
||||
ElemDimVertList.RemoveAll(x => x.nSubArea == deleteSubArea);
|
||||
}
|
||||
@@ -371,7 +374,10 @@ namespace WebWindowComplex.Models
|
||||
if (m_bSplitStartVert)
|
||||
{
|
||||
int deleteSubArea = ElemDimVertList.Count + 1;
|
||||
ElemDimVertList.RemoveAt(ElemDimVertList.Count - 1);
|
||||
for (var SplitIndex = ElemDimVertList.Count - 1; SplitIndex >= value; SplitIndex += -1)
|
||||
{
|
||||
ElemDimVertList.RemoveAt(ElemDimVertList.Count - 1);
|
||||
}
|
||||
if(nSplitQtyHoriz > 0)
|
||||
ElemDimHorizList.RemoveAll(x=>x.nSubArea == deleteSubArea);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user