From: Abdelrazak Younes Date: Sun, 12 Nov 2006 08:39:11 +0000 (+0000) Subject: Don't ask me why but the cursor x position hack is not needed anymore following my... X-Git-Tag: 1.6.10~11922 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;ds=sidebyside;h=e5cdbb6a9d8c6c5788828be3015046f6527114ad;p=lyx.git 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 --- diff --git a/src/bufferview_funcs.C b/src/bufferview_funcs.C index 1ad64cb27c..d5dec9c6c6 100644 --- a/src/bufferview_funcs.C +++ b/src/bufferview_funcs.C @@ -195,9 +195,7 @@ Point coordOffset(BufferView const & bv, DocIterator const & dit, y += par.rows()[rit].height(); y += par.rows()[rend].ascent(); 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); }