Skip to content

Commit

Permalink
Fixed issue where the aboveCell null check didn't work correctly as t…
Browse files Browse the repository at this point in the history
…he check for col remaining was looking at rows instead.
  • Loading branch information
Neil Bruce committed Feb 2, 2018
1 parent adb2467 commit 2a028bd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1362,7 +1362,7 @@ internal bool RowSpanAbove(int currRow, int currCol)
{
int col = currCol - 1;
aboveCell = aboveRow.GetCells()[col];
while ((aboveCell == null) && (row > 0))
while ((aboveCell == null) && (col > 0))
aboveCell = aboveRow.GetCells()[--col];
return aboveCell != null && aboveCell.Rowspan > distance;
}
Expand Down

0 comments on commit 2a028bd

Please sign in to comment.