diff --git a/src/richtext/richtextbuffer.cpp b/src/richtext/richtextbuffer.cpp index 22cd5a96ba..bad11bf400 100644 --- a/src/richtext/richtextbuffer.cpp +++ b/src/richtext/richtextbuffer.cpp @@ -9423,7 +9423,7 @@ bool wxRichTextCell::AdjustAttributes(wxRichTextAttr& attr, wxRichTextDrawingCon } else { - wxRichTextCell* nextBottomCell = table->GetCell(col, nextRow); + wxRichTextCell* nextBottomCell = table->GetCell(nextRow, col); if (nextBottomCell->IsShown()) { adjacentCellBelow = nextBottomCell;