diff --git a/layout/generic/nsTextFrameThebes.cpp b/layout/generic/nsTextFrameThebes.cpp index 4c210ffa50d..5c2c3db0597 100644 --- a/layout/generic/nsTextFrameThebes.cpp +++ b/layout/generic/nsTextFrameThebes.cpp @@ -5798,7 +5798,7 @@ nsTextFrame::AdjustOffsetsForBidi(PRInt32 aStart, PRInt32 aEnd) */ ClearTextRun(); - nsTextFrame* prev = static_cast(GetPrevInFlow()); + nsTextFrame* prev = static_cast(GetPrevContinuation()); if (prev) { // the bidi resolver can be very evil when columns/pages are involved. Don't // let it violate our invariants.