when having a template with existing filters and then trying to delete some column will lead to a crash.
The issue is in file "ExcelNamedRangeCollection.cs" and function "internal void Delete(int rowFrom, int colFrom, int rows, int cols, Func<ExcelNamedRange, bool> filter)":
```
if (rows==0)
```
should be
```
if (columns > 0 && fromRow == 0 && rows >= ExcelPackage.MaxRows)
```
because the "delete" function is called in file: "ExcelWorksheet.cs" inside function: "public void DeleteColumn(int columnFrom, int columns)" with line
```
_names.Delete(0, columnFrom, ExcelPackage.MaxRows, columns);
```
which results in
```
if (rows==0)
```
could never be true.
The issue is in file "ExcelNamedRangeCollection.cs" and function "internal void Delete(int rowFrom, int colFrom, int rows, int cols, Func<ExcelNamedRange, bool> filter)":
```
if (rows==0)
```
should be
```
if (columns > 0 && fromRow == 0 && rows >= ExcelPackage.MaxRows)
```
because the "delete" function is called in file: "ExcelWorksheet.cs" inside function: "public void DeleteColumn(int columnFrom, int columns)" with line
```
_names.Delete(0, columnFrom, ExcelPackage.MaxRows, columns);
```
which results in
```
if (rows==0)
```
could never be true.