From e5cdbb6a9d8c6c5788828be3015046f6527114ad Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Sun, 12 Nov 2006 08:39:11 +0000 Subject: [PATCH] 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 --- src/bufferview_funcs.C | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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); } -- 2.39.2