InsertTable(index, x, y) was calling itself recursively instead of calling its base implementation which caused a stackoverflow.master
| if (rowCount < 1 || coloumnCount < 1) | if (rowCount < 1 || coloumnCount < 1) | ||||
| throw new ArgumentOutOfRangeException("Row and Column count must be greater than zero."); | throw new ArgumentOutOfRangeException("Row and Column count must be greater than zero."); | ||||
| Table t = InsertTable(index, rowCount, coloumnCount); | |||||
| Table t = base.InsertTable(index, rowCount, coloumnCount); | |||||
| t.mainPart = mainPart; | t.mainPart = mainPart; | ||||
| return t; | return t; | ||||
| } | } |