diff --git a/src/text.C b/src/text.C index 0e92f78108..494fcf18f0 100644 --- a/src/text.C +++ b/src/text.C @@ -300,7 +300,7 @@ int LyXText::singleWidth(Paragraph * par, } -lyx::pos_type LyXText::log2vis(lyx::pos_type pos) const +lyx::pos_type LyXText::log2vis(lyx::pos_type pos) const { if (bidi_start == -1) return pos; @@ -309,7 +309,7 @@ lyx::pos_type LyXText::log2vis(lyx::pos_type pos) const } -lyx::pos_type LyXText::vis2log(lyx::pos_type pos) const +lyx::pos_type LyXText::vis2log(lyx::pos_type pos) const { if (bidi_start == -1) return pos; @@ -318,7 +318,7 @@ lyx::pos_type LyXText::vis2log(lyx::pos_type pos) const } -lyx::pos_type LyXText::bidi_level(lyx::pos_type pos) const +lyx::pos_type LyXText::bidi_level(lyx::pos_type pos) const { if (bidi_start == -1) return 0; @@ -327,7 +327,7 @@ lyx::pos_type LyXText::bidi_level(lyx::pos_type pos) const } -bool LyXText::bidi_InRange(lyx::pos_type pos) const +bool LyXText::bidi_InRange(lyx::pos_type pos) const { return bidi_start == -1 || (bidi_start <= pos && pos <= bidi_end); diff --git a/src/text2.C b/src/text2.C index 30c3c25051..71f115b40b 100644 --- a/src/text2.C +++ b/src/text2.C @@ -1792,7 +1792,7 @@ void LyXText::setCursor(LyXCursor & cur, Paragraph * par, cur.ix(cur.x()); //if the cursor is in a visible row, anchor to it int topy = top_y(); - if (topy < y && y < topy + bv()->workHeight()) + if (topy < y && y < topy + bv()->workHeight()) anchor_row(row); }