Don't ask me why but the cursor x position hack is not needed anymore following my cursor changes.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15870 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2006-11-12 08:39:11 +00:00
parent a988cd6de1
commit e5cdbb6a9d

View File

@ -195,9 +195,7 @@ Point coordOffset(BufferView const & bv, DocIterator const & dit,
y += par.rows()[rit].height(); y += par.rows()[rit].height();
y += par.rows()[rend].ascent(); y += par.rows()[rend].ascent();
x += dit.bottom().text()->cursorX(*bv.buffer(), dit.bottom(), boundary && dit.depth() == 1); x += dit.bottom().text()->cursorX(*bv.buffer(), dit.bottom(), boundary && dit.depth() == 1);
// FIXME: The following correction should not be there at all.
// The cursor looks much better with the +1, though.
++x;
return Point(x, y); return Point(x, y);
} }