ws changes

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6589 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Lars Gullik Bjønnes 2003-03-26 16:15:02 +00:00
parent bd950a4c4e
commit 1afd0e5b5e
2 changed files with 5 additions and 5 deletions

View File

@ -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);

View File

@ -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);
}