This relates to the work item [15200](https://epplus.codeplex.com/workitem/15200) marked as solved. I slightly modified the test case and __the problem is still there__.
Exception:
__"Can't merge and already merged range"__
It looks like when inserting new rows, the merged cells collection is not updated thus provoking merged cells collision exceptions later on.
See new updated test project.
Illustration of the problem:
input:
row 1-3: merged cells
row 4-5: merged cells
operation:
- insert 3 rows after row 3. Rows 4-5 are shifted downwards - they now become rows 7-8.
- copy rows 1-3 to the empty inserted rows (rows 4-6) ==> exception !!!
Exception:
__"Can't merge and already merged range"__
It looks like when inserting new rows, the merged cells collection is not updated thus provoking merged cells collision exceptions later on.
See new updated test project.
Illustration of the problem:
input:
row 1-3: merged cells
row 4-5: merged cells
operation:
- insert 3 rows after row 3. Rows 4-5 are shifted downwards - they now become rows 7-8.
- copy rows 1-3 to the empty inserted rows (rows 4-6) ==> exception !!!