From 731ae937ea38b5d841be1161a18d34a5558e61c8 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Sun, 23 Sep 2007 08:00:19 +0000 Subject: [PATCH] reverting r20422 until I know more about this. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20444 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/bufferview_funcs.cpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/bufferview_funcs.cpp b/src/bufferview_funcs.cpp index 3f132de962..cb29851bbb 100644 --- a/src/bufferview_funcs.cpp +++ b/src/bufferview_funcs.cpp @@ -178,15 +178,10 @@ Point coordOffset(BufferView const & bv, DocIterator const & dit, bool rtl = bv.textMetrics(sl.text()).isRTL(sl, boundary_i); if (rtl) x -= lastw; - // remember width for the case that sl.inset() is positioned in an RTL inset - Dimension const & dim = bv.parMetrics(sl.text(), sl.pit()). - insetDimension(&sl.inset()); - lastw = dim.wid; - } else { - // remember width for the case that sl.inset() is positioned in an RTL inset - Dimension const dim = sl.inset().dimension(bv); - lastw = dim.wid; } + // remember width for the case that sl.inset() is positioned in an RTL inset + Dimension const dim = sl.inset().dimension(bv); + lastw = dim.wid; //lyxerr << "Cursor::getPos, i: " // << i << " x: " << xx << " y: " << y << endl; -- 2.39.2