From: Abdelrazak Younes Date: Sun, 23 Sep 2007 08:00:19 +0000 (+0000) Subject: reverting r20422 until I know more about this. X-Git-Tag: 1.6.10~8225 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=731ae937ea38b5d841be1161a18d34a5558e61c8;p=features.git 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 --- 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;