B2017-197 a Select method was being called in the SplitSelectionRow method all the time. We only need to call the Select method when are processing rows that do not contain any merged rows.
This commit is contained in:
parent
83e13a93ee
commit
f2247946e0
@ -2678,9 +2678,12 @@ namespace Volian.Controls.Library
|
||||
Select(r, cr.c1, r, cr.c2);
|
||||
InsertRowAfter();
|
||||
}
|
||||
}
|
||||
// B2017-197 move the Select inside if (hasNonMergedRow)
|
||||
// was getting a selection out of range error when spliting rows that contained mergered rows
|
||||
// only need to do this if we inserted rows
|
||||
// include new rows in selection
|
||||
this.Select(cr.r1, cr.c1, cr.r2 + numSelRows, cr.c2);
|
||||
}
|
||||
//if a merged range is part of the selectin, try to split it
|
||||
foreach (CellRange sel in MySelection)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user